diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-03-10 22:43:23 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-03-10 22:43:23 +0000 |
commit | 122dcdcb31d86722916ca04099715e80a6f6bd1b (patch) | |
tree | d1a15764ebc6bf84ed13a07931f5794c83756253 | |
parent | 86decad65240ea9e1bea177f1091f80d08b62402 (diff) | |
download | ffmpeg-122dcdcb31d86722916ca04099715e80a6f6bd1b.tar.gz |
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
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |