From a00a3da84dc0f41bf5ec733ed7a64cf6f19289ef Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 1 May 2015 18:49:31 +0200 Subject: [PATCH] tsfix: do not use wrong DTS as the reference clock, fixes #2731, fixes #2754 --- src/plumbing/tsfix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plumbing/tsfix.c b/src/plumbing/tsfix.c index 9d5604add..66b8e5d27 100644 --- a/src/plumbing/tsfix.c +++ b/src/plumbing/tsfix.c @@ -424,7 +424,7 @@ tsfix_input_packet(tsfix_t *tf, streaming_message_t *sm) return; } - if(tf->tf_tsref == PTS_UNSET && + if(pkt->pkt_dts != PTS_UNSET && tf->tf_tsref == PTS_UNSET && ((!tf->tf_hasvideo && tfs->tfs_audio) || (tfs->tfs_video && pkt->pkt_frametype == PKT_I_FRAME))) { threshold = 22500; -- 2.47.2