Browse Source

avformat/movenc: Skip duration check for discontinuous fragments

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.2
Michael Niedermayer 8 years ago
parent
commit
18ad44d145
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/movenc.c

+ 2
- 1
libavformat/movenc.c View File

@@ -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


Loading…
Cancel
Save