Skip to content

Commit

Permalink
ffplay: fix type of time_diff in waveform display
Browse files Browse the repository at this point in the history
Fixes time diff overflow visible as showing the same few waveforms in a loop at
the end of file.

Signed-off-by: Marton Balint <[email protected]>
  • Loading branch information
cus committed Dec 28, 2012
1 parent ec89ea3 commit 92b50b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 92b50b7

Please sign in to comment.