Skip to content
Snippets Groups Projects
Commit 06f4b1e3 authored by Luca Barbato's avatar Luca Barbato
Browse files

avplay: Do not print a possibly uninitialized value


Initialize `diff` to 0.

Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent e8c4db0d
No related branches found
No related tags found
No related merge requests found
...@@ -1033,7 +1033,7 @@ static void stream_pause(VideoState *is) ...@@ -1033,7 +1033,7 @@ static void stream_pause(VideoState *is)
static double compute_target_time(double frame_current_pts, 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 */ /* compute nominal delay */
delay = frame_current_pts - is->frame_last_pts; delay = frame_current_pts - is->frame_last_pts;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment