From b16218a5168c5ce5ca1886dca4b8c497dcd9a46c Mon Sep 17 00:00:00 2001 From: John Smith Date: Wed, 30 Jul 2014 10:35:25 +0200 Subject: [PATCH] Include subtitle type streams in PTS/DTS normalization --- src/plumbing/tsfix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plumbing/tsfix.c b/src/plumbing/tsfix.c index fbaac911..8c3503c3 100644 --- a/src/plumbing/tsfix.c +++ b/src/plumbing/tsfix.c @@ -149,7 +149,7 @@ normalize_ts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt) int checkts = SCT_ISAUDIO(tfs->tfs_type) || SCT_ISVIDEO(tfs->tfs_type); - if (checkts) { + if (checkts || SCT_ISSUBTITLE(tfs->tfs_type)) { if(tf->tf_tsref == PTS_UNSET) { pkt_ref_dec(pkt); return; @@ -167,7 +167,7 @@ normalize_ts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt) pkt_ref_dec(pkt); return; } - } else { + } else if (checkts) { d = dts + tfs->tfs_dts_epoch - tfs->tfs_last_dts_norm; if(d < 0 || d > 90000) {