]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
parsers: increase DVBSUB max timediff (DTS/PCR) to 6 seconds
authorJaroslav Kysela <perex@perex.cz>
Tue, 9 May 2017 16:56:44 +0000 (18:56 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 May 2017 16:57:29 +0000 (18:57 +0200)
src/parsers/parsers.c
src/plumbing/tsfix.c

index 4b64973b008e2cd73da1137847183fa0af752042..72976dc758bcc6af6392e61d79961f6e6cfff6a0 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 ? 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",
index 3c9f19f8787f2d7d300992896b1779d42e13a45b..f01f3b5a40285e478084c9aaf42c79a8115d641e 100644 (file)
@@ -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;