ffplay: fix type of time_diff in waveform display
authorMarton Balint <cus@passwd.hu>
Tue, 25 Dec 2012 23:26:59 +0000 (00:26 +0100)
committerMarton Balint <cus@passwd.hu>
Fri, 28 Dec 2012 19:01:01 +0000 (20:01 +0100)
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@passwd.hu>
ffplay.c

index c8dbda5..7d47bcd 100644 (file)
--- 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++)