diff options
author | Martin Storsjö <martin@martin.st> | 2015-01-03 01:44:38 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-01-04 20:04:36 +0200 |
commit | 46808fdf04ab113df374157b90b506eb3110daf2 (patch) | |
tree | b6131a99fc737404f22b183947677dbf4fa74026 /libavformat/movenc.c | |
parent | 9f810a9b374e0ff8e2a19fd8a7347afe2933e229 (diff) | |
download | ffmpeg-46808fdf04ab113df374157b90b506eb3110daf2.tar.gz |
movenc: Enable editlists by default if delay_moov is enabled
Being able to write editlists properly is one of the main points
in the delay_moov flag.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.c')
-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 75c2d27a78..72da0101f9 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3696,7 +3696,8 @@ static int mov_write_header(AVFormatContext *s) if (mov->use_editlist < 0) { mov->use_editlist = 1; - if (mov->flags & FF_MOV_FLAG_FRAGMENT) { + if (mov->flags & FF_MOV_FLAG_FRAGMENT && + !(mov->flags & FF_MOV_FLAG_DELAY_MOOV)) { // If we can avoid needing an edit list by shifting the // tracks, prefer that over (trying to) write edit lists // in fragmented output. |