Fix bug: PTS are 1/90ms and use AudioVideoDelay.

This commit is contained in:
Johns 2012-04-30 13:56:26 +02:00
parent 0cf110da81
commit 49ae1c7211

View File

@ -3732,7 +3732,7 @@ void AudioVideoReady(int64_t pts)
int skip; int skip;
// keep ~5 frames // keep ~5 frames
skip = pts - 5 * 20 - audio_pts; skip = pts - 5 * 20 * 90 - audio_pts - VideoAudioDelay;
if (skip > 0) { if (skip > 0) {
skip = (((int64_t) skip * AudioRing[AudioRingWrite].HwSampleRate) skip = (((int64_t) skip * AudioRing[AudioRingWrite].HwSampleRate)
/ (1000 * 90)) / (1000 * 90))