summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c3
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.