diff options
author | Martin Storsjö <martin@martin.st> | 2012-02-02 12:50:26 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-02-22 12:27:39 +0200 |
commit | 0c7b8b758aa3038451bba5ce8f0d3ef1fad8649f (patch) | |
tree | 983fee59ce0aa307080bad0bbf0b0e0de0d9ff8f /libavformat/movenc.h | |
parent | b70f04c2612f2685295b09ed7371fe694d52287e (diff) | |
download | ffmpeg-0c7b8b758aa3038451bba5ce8f0d3ef1fad8649f.tar.gz |
movenc: Buffer the mdat for the initial moov fragment, too
This allows writing QuickTime-compatible fragmented mp4 (with
a non-empty moov atom) to a non-seekable output.
This buffers the mdat for the initial fragment just as it does
for all normal fragments, too. Previously, the resulting
atom structure was mdat,moov, moof,mdat ..., while it now
is moov,mdat, moof,mdat.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r-- | libavformat/movenc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h index b77fc80b2f..350dbe04f2 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -151,6 +151,7 @@ typedef struct MOVMuxContext { int max_fragment_duration; int max_fragment_size; int ism_lookahead; + AVIOContext *mdat_buf; } MOVMuxContext; #define FF_MOV_FLAG_RTP_HINT 1 |