mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Fix bug: PTS are 1/90ms and use AudioVideoDelay.
This commit is contained in:
parent
0cf110da81
commit
49ae1c7211
2
audio.c
2
audio.c
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user