mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
avplay: Do not print a possibly uninitialized value
Initialize `diff` to 0. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
e8c4db0d4d
commit
06f4b1e37a
2
avplay.c
2
avplay.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user