diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-04-28 21:24:27 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-04-30 14:15:12 +0200 |
commit | 06f4b1e37a08f3fd269ecbfeb0181129e5bfc86e (patch) | |
tree | a0d2d95331db1743b93710826bcf37e9b2f76e51 | |
parent | e8c4db0d4d07738fed716b1d2f20c85aac944641 (diff) | |
download | ffmpeg-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |