Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tsfix: do not use wrong DTS as the reference clock, fixes #2731, fixe…
…s #2754
  • Loading branch information
perexg committed May 1, 2015
1 parent 5971f7b commit a00a3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plumbing/tsfix.c
Expand Up @@ -424,7 +424,7 @@ tsfix_input_packet(tsfix_t *tf, streaming_message_t *sm)
return;
}

if(tf->tf_tsref == PTS_UNSET &&
if(pkt->pkt_dts != PTS_UNSET && tf->tf_tsref == PTS_UNSET &&
((!tf->tf_hasvideo && tfs->tfs_audio) ||
(tfs->tfs_video && pkt->pkt_frametype == PKT_I_FRAME))) {
threshold = 22500;
Expand Down

0 comments on commit a00a3da

Please sign in to comment.