OSDN Git Service

movenc: Buffer the mdat for the initial moov fragment, too
authorMartin Storsjö <martin@martin.st>
Thu, 2 Feb 2012 10:50:26 +0000 (12:50 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 22 Feb 2012 10:27:39 +0000 (12:27 +0200)
commit0c7b8b758aa3038451bba5ce8f0d3ef1fad8649f
tree983fee59ce0aa307080bad0bbf0b0e0de0d9ff8f
parentb70f04c2612f2685295b09ed7371fe694d52287e
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>
libavformat/movenc.c
libavformat/movenc.h