From: Jaroslav Kysela Date: Sat, 13 May 2017 17:29:22 +0000 (+0200) Subject: PCR clocks: increase more the 'acceptable' boundaries for ffmpeg, fixes #4369 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a62ad30365926d0416eec9a5e0c6729cf0a65c3;p=thirdparty%2Ftvheadend.git PCR clocks: increase more the 'acceptable' boundaries for ffmpeg, fixes #4369 --- diff --git a/src/input/mpegts/tsdemux.c b/src/input/mpegts/tsdemux.c index f63a46224..337af1873 100644 --- a/src/input/mpegts/tsdemux.c +++ b/src/input/mpegts/tsdemux.c @@ -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);