aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-04-28 21:24:27 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-04-30 14:15:12 +0200
commit06f4b1e37a08f3fd269ecbfeb0181129e5bfc86e (patch)
treea0d2d95331db1743b93710826bcf37e9b2f76e51
parente8c4db0d4d07738fed716b1d2f20c85aac944641 (diff)
downloadffmpeg-06f4b1e37a08f3fd269ecbfeb0181129e5bfc86e.tar.gz
avplay: Do not print a possibly uninitialized value
Initialize `diff` to 0. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r--avplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avplay.c b/avplay.c
index 98fd954be5..5e5518eeac 100644
--- 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;