diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-10-18 18:18:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-10-19 13:25:21 +0200 |
commit | 18ad44d14548a54e0e7926c97ab15d3daafaf771 (patch) | |
tree | 18cd5e9db7ecf46d2d21dcc9c1b9aac615859eb0 | |
parent | 6498549fd75f679820a059a65ece1df4666aa46c (diff) | |
download | ffmpeg-18ad44d14548a54e0e7926c97ab15d3daafaf771.tar.gz |
avformat/movenc: Skip duration check for discontinuous fragments
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/movenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index d7c7158483..50be8ffdd8 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -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 |