[FFmpeg-cvslog] movenc: Automatically flush after writing the initial moov
Martin Storsjö
git at videolan.org
Wed Nov 11 15:04:41 CET 2015
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sat Nov 7 01:18:05 2015 +0200| [8ad5124b7ecf7f727724e270a7b4bb8c7bcbf6a4] | committer: Martin Storsjö
movenc: Automatically flush after writing the initial moov
In most other cases when writing fragmented mp4 files, the output
IO context is flushed after each fragment. Also flush it after
writing the initial moov, to have it behave in the same way.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8ad5124b7ecf7f727724e270a7b4bb8c7bcbf6a4
---
libavformat/movenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 572e781..3ee54bf 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -4048,6 +4048,7 @@ static int mov_write_header(AVFormatContext *s)
if (mov->flags & FF_MOV_FLAG_EMPTY_MOOV &&
!(mov->flags & FF_MOV_FLAG_DELAY_MOOV)) {
mov_write_moov_tag(pb, mov, s);
+ avio_flush(pb);
mov->moov_written = 1;
if (mov->flags & FF_MOV_FLAG_GLOBAL_SIDX)
mov->reserved_header_pos = avio_tell(pb);
More information about the ffmpeg-cvslog
mailing list