diff options
author | Johns <johns98@gmx.net> | 2012-04-30 13:56:26 +0200 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-04-30 13:56:26 +0200 |
commit | 49ae1c72110534bb08814f8aa095fa99db19f4c7 (patch) | |
tree | d080a6bbe723d7df04247ea8d9b7971d7f650c60 /audio.c | |
parent | 0cf110da8131ffff6ea4e80b21a0b6683cdebc23 (diff) | |
download | vdr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |