[FFmpeg-cvslog] r22442 - trunk/ffplay.c
michael
subversion
Wed Mar 10 23:43:23 CET 2010
Author: michael
Date: Wed Mar 10 23:43:23 2010
New Revision: 22442
Log:
Fix some apparent +- errors in the audio vissualization.
The bugs become only vissible at higher time resolution than what is
used currently.
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Wed Mar 10 23:24:46 2010 (r22441)
+++ trunk/ffplay.c Wed Mar 10 23:43:23 2010 (r22442)
@@ -828,10 +828,10 @@ static void video_audio_display(VideoSta
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;
More information about the ffmpeg-cvslog
mailing list