Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Include subtitle type streams in PTS/DTS normalization
  • Loading branch information
johsmi authored and perexg committed Aug 1, 2014
1 parent 04649b3 commit b16218a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plumbing/tsfix.c
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit b16218a

Please sign in to comment.