aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_sched.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-12-12 16:10:24 -0300
committerJames Almer <jamrial@gmail.com>2023-12-12 16:10:28 -0300
commit7cc4b306eb8ab4da3b051fcc531cc5fad47f5271 (patch)
tree3a295d5f10759ee0cad9f22d176b3080185cf885 /fftools/ffmpeg_sched.c
parent34d56e17667c48bcfc4fec5f726116ef1572dad1 (diff)
downloadffmpeg-7cc4b306eb8ab4da3b051fcc531cc5fad47f5271.tar.gz
ffmpeg_sched: initialize have_unchoked
Should fix valgrind warnings about Conditional jump or move depends on uninitialised value. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools/ffmpeg_sched.c')
-rw-r--r--fftools/ffmpeg_sched.c2
1 files changed, 1 insertions, 1 deletions
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