Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-03-11 01:43:23 +0300
committerMichael Niedermayer <michaelni@gmx.at>2010-03-11 01:43:23 +0300
commit122dcdcb31d86722916ca04099715e80a6f6bd1b (patch)
treed1a15764ebc6bf84ed13a07931f5794c83756253 /ffplay.c
parent86decad65240ea9e1bea177f1091f80d08b62402 (diff)
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
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index b42a2a20e5..82c07d434a 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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;