aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-11-11 15:03:36 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2015-11-11 15:03:36 +0100
commit9ffc61b1256e42c54766e73fd899a57261eb9b3b (patch)
tree6b1ac28d26c9ecf2393cf46bbeeb2cd3164a657d /libavformat/movenc.c
parent1f185ed897ddcbe080ba68888197e34a27b817c9 (diff)
parent8ad5124b7ecf7f727724e270a7b4bb8c7bcbf6a4 (diff)
downloadffmpeg-9ffc61b1256e42c54766e73fd899a57261eb9b3b.tar.gz
Merge commit '8ad5124b7ecf7f727724e270a7b4bb8c7bcbf6a4'
* commit '8ad5124b7ecf7f727724e270a7b4bb8c7bcbf6a4': movenc: Automatically flush after writing the initial moov Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 3646994c43..53e3772c61 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -5304,6 +5304,7 @@ static int mov_write_header(AVFormatContext *s)
!(mov->flags & FF_MOV_FLAG_DELAY_MOOV)) {
if ((ret = mov_write_moov_tag(pb, mov, s)) < 0)
return ret;
+ avio_flush(pb);
mov->moov_written = 1;
if (mov->flags & FF_MOV_FLAG_GLOBAL_SIDX)
mov->reserved_header_pos = avio_tell(pb);