From 49ae1c72110534bb08814f8aa095fa99db19f4c7 Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 30 Apr 2012 13:56:26 +0200 Subject: Fix bug: PTS are 1/90ms and use AudioVideoDelay. --- audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio.c') diff --git a/audio.c b/audio.c index 180c97f..24afabe 100644 --- a/audio.c +++ b/audio.c @@ -3732,7 +3732,7 @@ void AudioVideoReady(int64_t pts) int skip; // keep ~5 frames - skip = pts - 5 * 20 - audio_pts; + skip = pts - 5 * 20 * 90 - audio_pts - VideoAudioDelay; if (skip > 0) { skip = (((int64_t) skip * AudioRing[AudioRingWrite].HwSampleRate) / (1000 * 90)) -- cgit v1.2.3