summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-04-30 13:56:26 +0200
committerJohns <johns98@gmx.net>2012-04-30 13:56:26 +0200
commit49ae1c72110534bb08814f8aa095fa99db19f4c7 (patch)
treed080a6bbe723d7df04247ea8d9b7971d7f650c60 /audio.c
parent0cf110da8131ffff6ea4e80b21a0b6683cdebc23 (diff)
downloadvdr-plugin-softhddevice-49ae1c72110534bb08814f8aa095fa99db19f4c7.tar.gz
vdr-plugin-softhddevice-49ae1c72110534bb08814f8aa095fa99db19f4c7.tar.bz2
Fix bug: PTS are 1/90ms and use AudioVideoDelay.
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c2
1 files changed, 1 insertions, 1 deletions
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))