]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
PCR clocks: increase more the 'acceptable' boundaries for ffmpeg, fixes #4369
authorJaroslav Kysela <perex@perex.cz>
Sat, 13 May 2017 17:29:22 +0000 (19:29 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 13 May 2017 17:29:22 +0000 (19:29 +0200)
src/input/mpegts/tsdemux.c

index f63a46224bb26418b610ca9bfbae0ca2ac1a9b9c..337af18737b1ef6696dea119ba430c92330f181d 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) <= 3*90000 ||
-            (t->s_candidate_pcr != PTS_UNSET && pts_diff(t->s_candidate_pcr, pcr) <= 3*90000)) {
+        if (t->s_current_pcr == PTS_UNSET || pts_diff(t->s_current_pcr, pcr) <= 4*90000 ||
+            (t->s_candidate_pcr != PTS_UNSET && pts_diff(t->s_candidate_pcr, pcr) <= 4*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);