From: Jaroslav Kysela Date: Sat, 13 May 2017 06:34:01 +0000 (+0200) Subject: PCR clocks: increase again the 'acceptable' boundaries for ffmpeg X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b66f57c6fccb5dd79af88c9328d1202965663262;p=thirdparty%2Ftvheadend.git PCR clocks: increase again the 'acceptable' boundaries for ffmpeg --- diff --git a/src/input/mpegts/tsdemux.c b/src/input/mpegts/tsdemux.c index b0dd02e8a..f63a46224 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) <= 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); diff --git a/src/parsers/parsers.c b/src/parsers/parsers.c index 7b4de558c..34421eabf 100644 --- a/src/parsers/parsers.c +++ b/src/parsers/parsers.c @@ -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))