[SCM] libav/experimental: Fix some apparent +- errors in the audio vissualization. The bugs become only vissible at higher time resolution than what is used currently.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:04:04 UTC 2013
The following commit has been merged in the experimental branch:
commit 122dcdcb31d86722916ca04099715e80a6f6bd1b
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Wed Mar 10 22:43:23 2010 +0000
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
diff --git a/ffplay.c b/ffplay.c
index b42a2a2..82c07d4 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list