X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmovenc.c;h=ee28f0ed7b6eaa6a03fca08636a5c9b42cdc3663;hb=eb45a2188fb8d018bb5fbb0b54706c9e7b6a3749;hp=f33792661b7639b0d20b7dbd034dd4504843284d;hpb=c7c138e411dec64a80782ee230837f8a0925726d;p=ffmpeg diff --git a/libavformat/movenc.c b/libavformat/movenc.c index f33792661b7..ee28f0ed7b6 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -6841,8 +6841,6 @@ static int mov_write_header(AVFormatContext *s) } } - avio_flush(pb); - if (mov->flags & FF_MOV_FLAG_ISML) mov_write_isml_manifest(pb, mov, s); @@ -6855,6 +6853,8 @@ static int mov_write_header(AVFormatContext *s) mov->reserved_header_pos = avio_tell(pb); } + avio_flush(pb); + return 0; }