diff options
author | Martin Storsjö <martin@martin.st> | 2016-04-07 15:47:31 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2017-05-15 14:08:48 +0300 |
commit | c415c8104c46f5a75306fff1235124b189e86d06 (patch) | |
tree | b69fae57ca779b4f2327f7ad856b170f05044fdc /libavformat | |
parent | c380a0d7f7a2c7411aae60463e25d916541f0388 (diff) | |
download | ffmpeg-streaming-c415c8104c46f5a75306fff1235124b189e86d06.zip ffmpeg-streaming-c415c8104c46f5a75306fff1235124b189e86d06.tar.gz |
movenc: Don't write any edit list if the start offset is zero
In these cases, the CTTS flag is set, but no edit list is necessary.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 356d1d6..e389029 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1811,8 +1811,7 @@ static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov, ffio_wfourcc(pb, "trak"); mov_write_tkhd_tag(pb, mov, track, st); if (track->start_dts != AV_NOPTS_VALUE && - (track->mode == MODE_PSP || track->flags & MOV_TRACK_CTTS || - track->start_dts || is_clcp_track(track))) { + (track->mode == MODE_PSP || track->start_dts || is_clcp_track(track))) { if (mov->use_editlist) mov_write_edts_tag(pb, mov, track); // PSP Movies require edts box else if ((track->entry && track->cluster[0].dts) || track->mode == MODE_PSP || is_clcp_track(track)) |