[FFmpeg-cvslog] ffmpeg_sched: initialize have_unchoked
James Almer
git at videolan.org
Tue Dec 12 21:11:28 EET 2023
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Dec 12 16:10:24 2023 -0300| [7cc4b306eb8ab4da3b051fcc531cc5fad47f5271] | committer: James Almer
ffmpeg_sched: initialize have_unchoked
Should fix valgrind warnings about Conditional jump or move depends on uninitialised value.
Reviewed-by: Anton Khirnov <anton at khirnov.net>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7cc4b306eb8ab4da3b051fcc531cc5fad47f5271
---
fftools/ffmpeg_sched.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fftools/ffmpeg_sched.c b/fftools/ffmpeg_sched.c
index 69f8c0c3c0..96eaaae072 100644
--- a/fftools/ffmpeg_sched.c
+++ b/fftools/ffmpeg_sched.c
@@ -1187,7 +1187,7 @@ static int64_t trailing_dts(const Scheduler *sch)
static void schedule_update_locked(Scheduler *sch)
{
int64_t dts;
- int have_unchoked;
+ int have_unchoked = 0;
// on termination request all waiters are choked,
// we are not to unchoke them
More information about the ffmpeg-cvslog
mailing list