Browse Source

Fix some apparent +- errors in the audio vissualization.

The bugs become only vissible at higher time resolution than what is
used currently.

Originally committed as revision 22442 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer 16 years ago
parent
commit
122dcdcb31
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ffplay.c

+ 2
- 2
ffplay.c View File

@@ -828,10 +828,10 @@ static void video_audio_display(VideoState *s)
the last buffer computation */
if (audio_callback_time) {
time_diff = av_gettime() - audio_callback_time;
delay += (time_diff * s->audio_st->codec->sample_rate) / 1000000;
delay -= (time_diff * s->audio_st->codec->sample_rate) / 1000000;
}

delay -= data_used / 2;
delay += 2*data_used;
if (delay < data_used)
delay = data_used;



Loading…
Cancel
Save