avplay: Do not print a possibly uninitialized value
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 28 Apr 2015 19:24:27 +0000 (21:24 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 30 Apr 2015 12:15:12 +0000 (14:15 +0200)
Initialize `diff` to 0.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
avplay.c

index 98fd954..5e5518e 100644 (file)
--- a/avplay.c
+++ b/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;