From 0c7b8b758aa3038451bba5ce8f0d3ef1fad8649f Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Thu, 2 Feb 2012 12:50:26 +0200 Subject: movenc: Buffer the mdat for the initial moov fragment, too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavformat/movenc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/movenc.h') 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 -- cgit v1.2.3