mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
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@martin.st>
This commit is contained in:
parent
db9b7321d5
commit
8ad5124b7e
@ -4048,6 +4048,7 @@ static int mov_write_header(AVFormatContext *s)
|
|||||||
if (mov->flags & FF_MOV_FLAG_EMPTY_MOOV &&
|
if (mov->flags & FF_MOV_FLAG_EMPTY_MOOV &&
|
||||||
!(mov->flags & FF_MOV_FLAG_DELAY_MOOV)) {
|
!(mov->flags & FF_MOV_FLAG_DELAY_MOOV)) {
|
||||||
mov_write_moov_tag(pb, mov, s);
|
mov_write_moov_tag(pb, mov, s);
|
||||||
|
avio_flush(pb);
|
||||||
mov->moov_written = 1;
|
mov->moov_written = 1;
|
||||||
if (mov->flags & FF_MOV_FLAG_GLOBAL_SIDX)
|
if (mov->flags & FF_MOV_FLAG_GLOBAL_SIDX)
|
||||||
mov->reserved_header_pos = avio_tell(pb);
|
mov->reserved_header_pos = avio_tell(pb);
|
||||||
|
Loading…
Reference in New Issue
Block a user