movenc: Write the moof atom in two passes
authorMartin Storsjö <martin@martin.st>
Mon, 9 Sep 2013 09:05:01 +0000 (12:05 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 17 Sep 2013 20:25:46 +0000 (23:25 +0300)
commita4adabb460ace39783d707a5b3bbe28b4b5b9dc4
tree886524bd40008ae80a3d6854f5712e8abacf8179
parentc77d409bf95954aceb762dd800d1ee2868c4b0d4
movenc: Write the moof atom in two passes

This is a bit more work, but avoids having to fill in
the data offset field afterwards instead of directly when
the rest of the trun atom is written.

This simplifies future cases where this field needs to be set to
something different.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/movenc.c
libavformat/movenc.h