diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-08-10 11:24:30 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-08-10 11:24:30 +0200 |
commit | 10ea06b3bb863b8dca51f65c4b725eeba8557f12 (patch) | |
tree | 8aa9253e5c8759200f42fefe8ba3afd511d67359 /libavformat | |
parent | 7653ebfff6ea3f91ea81599ba8e2af922c510ecb (diff) | |
parent | 5f200bbf98efe50f63d0515b115d2ba8dae297bc (diff) | |
download | ffmpeg-10ea06b3bb863b8dca51f65c4b725eeba8557f12.tar.gz |
Merge commit '5f200bbf98efe50f63d0515b115d2ba8dae297bc'
* commit '5f200bbf98efe50f63d0515b115d2ba8dae297bc':
movenc: Place the sidx index after the initial moov/mdat pair
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 25d4c5fbce..41a47597f4 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -4181,6 +4181,9 @@ static int mov_flush_fragment(AVFormatContext *s) avio_write(s->pb, buf, buf_size); av_free(buf); + if (mov->flags & FF_MOV_FLAG_FASTSTART) + mov->reserved_header_pos = avio_tell(s->pb); + mov->moov_written = 1; mov->mdat_size = 0; for (i = 0; i < mov->nb_streams; i++) { |