Commit 06f4b1e3 authored by Luca Barbato's avatar Luca Barbato

avplay: Do not print a possibly uninitialized value

Initialize `diff` to 0.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent e8c4db0d
......@@ -1033,7 +1033,7 @@ static void stream_pause(VideoState *is)
static double compute_target_time(double frame_current_pts, VideoState *is)
{
double delay, sync_threshold, diff;
double delay, sync_threshold, diff = 0;
/* compute nominal delay */
delay = frame_current_pts - is->frame_last_pts;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment