diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-04-28 22:24:27 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-04-30 15:15:12 +0300 |
commit | 06f4b1e37a08f3fd269ecbfeb0181129e5bfc86e (patch) | |
tree | a0d2d95331db1743b93710826bcf37e9b2f76e51 /avplay.c | |
parent | e8c4db0d4d07738fed716b1d2f20c85aac944641 (diff) |
avplay: Do not print a possibly uninitialized value
Initialize `diff` to 0.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'avplay.c')
-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; |