Commit 18ad44d1 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/movenc: Skip duration check for discontinuous fragments

Found-by: Daemon404
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6498549f
......@@ -4697,7 +4697,8 @@ static int check_pkt(AVFormatContext *s, AVPacket *pkt)
if (trk->entry) {
ref = trk->cluster[trk->entry - 1].dts;
} else if (trk->start_dts != AV_NOPTS_VALUE) {
} else if ( trk->start_dts != AV_NOPTS_VALUE
&& !trk->frag_discont) {
ref = trk->start_dts + trk->track_duration;
} else
ref = pkt->dts; // Skip tests for the first packet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment