]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
PCR clocks: increase again the 'acceptable' boundaries for ffmpeg
authorJaroslav Kysela <perex@perex.cz>
Sat, 13 May 2017 06:34:01 +0000 (08:34 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 13 May 2017 06:34:01 +0000 (08:34 +0200)
src/input/mpegts/tsdemux.c
src/parsers/parsers.c

index b0dd02e8a18fc63f78a7df74ae40799c13a5cb2c..f63a46224bb26418b610ca9bfbae0ca2ac1a9b9c 100644 (file)
@@ -97,8 +97,8 @@ ts_recv_packet0
         pcr |=  (uint64_t)tsb2[9] << 1;
         pcr |= ((uint64_t)tsb2[10] >> 7) & 0x01;
         /* handle the broken info using candidate variable */
-        if (t->s_current_pcr == PTS_UNSET || pts_diff(t->s_current_pcr, pcr) <= 2*90000 ||
-            (t->s_candidate_pcr != PTS_UNSET && pts_diff(t->s_candidate_pcr, pcr) <= 2*90000)) {
+        if (t->s_current_pcr == PTS_UNSET || pts_diff(t->s_current_pcr, pcr) <= 3*90000 ||
+            (t->s_candidate_pcr != PTS_UNSET && pts_diff(t->s_candidate_pcr, pcr) <= 3*90000)) {
           if (pcr != t->s_current_pcr) {
             if (t->s_current_pcr == PTS_UNSET)
               tvhtrace(LS_TS, "%s: PCR initial: %"PRId64, service_nicename((service_t*)t), pcr);
index 7b4de558ca9a4226b9545cd1c59d421f8f141916..34421eabf8e5e218d8ae0bf52bcd78d74c233b94 100644 (file)
@@ -1832,7 +1832,7 @@ parser_deliver(service_t *t, elementary_stream_t *st, th_pkt_t *pkt)
 
   assert(pkt->pkt_type == st->es_type);
 
-  diff = st->es_type == SCT_DVBSUB ? 6*90000 : 3*90000;
+  diff = st->es_type == SCT_DVBSUB ? 6*90000 : 4*90000;
 
   if (pts_diff(pkt->pkt_pcr, pkt->pkt_pts) > diff) {
     if (tvhlog_limit(&st->es_pcr_log, 2))