From: Jaroslav Kysela Date: Tue, 9 May 2017 16:56:44 +0000 (+0200) Subject: parsers: increase DVBSUB max timediff (DTS/PCR) to 6 seconds X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fdb3909bed10a24f236297e0074a4397e8a0fc0;p=thirdparty%2Ftvheadend.git parsers: increase DVBSUB max timediff (DTS/PCR) to 6 seconds --- diff --git a/src/parsers/parsers.c b/src/parsers/parsers.c index 4b64973b0..72976dc75 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 ? 4*90000 : 3*90000; + diff = st->es_type == SCT_DVBSUB ? 6*90000 : 3*90000; if (pts_diff(pkt->pkt_pcr, pkt->pkt_pts) > diff) { printf("%s: PTS and PCR diff is very big (%"PRId64")\n", diff --git a/src/plumbing/tsfix.c b/src/plumbing/tsfix.c index 3c9f19f87..f01f3b5a4 100644 --- a/src/plumbing/tsfix.c +++ b/src/plumbing/tsfix.c @@ -521,7 +521,7 @@ tsfix_input_packet(tsfix_t *tf, streaming_message_t *sm) LIST_FOREACH(tfs2, &tf->tf_streams, tfs_link) if(tfs2->tfs_audio && tfs2->tfs_last_dts_in != PTS_UNSET) { diff = tsfix_ts_diff(tfs2->tfs_last_dts_in, pkt->pkt_dts); - if (diff > 4 * 90000) { + if (diff > 6 * 90000) { tvhwarn(LS_TSFIX, "The timediff for %s is big (%"PRId64"), using audio dts", streaming_component_type2txt(tfs->tfs_type), diff); tfs->tfs_parent = tfs2;