From: Jaroslav Kysela Date: Fri, 1 May 2015 16:49:31 +0000 (+0200) Subject: tsfix: do not use wrong DTS as the reference clock, fixes #2731, fixes #2754 X-Git-Tag: v4.1~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a00a3da84dc0f41bf5ec733ed7a64cf6f19289ef;p=thirdparty%2Ftvheadend.git tsfix: do not use wrong DTS as the reference clock, fixes #2731, fixes #2754 --- 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;