]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
tsfix: do not use wrong DTS as the reference clock, fixes #2731, fixes #2754
authorJaroslav Kysela <perex@perex.cz>
Fri, 1 May 2015 16:49:31 +0000 (18:49 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 1 May 2015 16:49:31 +0000 (18:49 +0200)
src/plumbing/tsfix.c

index 9d5604addb47b5fd61175ece907e3310bdc9dc91..66b8e5d2725aff980edf0fdeaf5ca171235b48a6 100644 (file)
@@ -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;