Commit 0cf51bd8 authored by michael's avatar michael

Fix some apparent +- errors in the audio vissualization.

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22442 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c0dab6ed
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment