[FFmpeg-cvslog] ffplay: fix type of time_diff in waveform display

Marton Balint git at videolan.org
Sat Dec 29 04:40:36 CET 2012


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Wed Dec 26 00:26:59 2012 +0100| [92b50b71a1e4e78fa2828dc2e0a4428674a8a9b0] | committer: Marton Balint

ffplay: fix type of time_diff in waveform display

Fixes time diff overflow visible as showing the same few waveforms in a loop at
the end of file.

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92b50b71a1e4e78fa2828dc2e0a4428674a8a9b0
---

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index c8dbda5..7d47bcd 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -828,7 +828,7 @@ static void video_audio_display(VideoState *s)
 {
     int i, i_start, x, y1, y, ys, delay, n, nb_display_channels;
     int ch, channels, h, h2, bgcolor, fgcolor;
-    int16_t time_diff;
+    int64_t time_diff;
     int rdft_bits, nb_freq;
 
     for (rdft_bits = 1; (1 << rdft_bits) < 2 * s->height; rdft_bits++)



More information about the ffmpeg-cvslog mailing list