movenc: Place the sidx index after the initial moov/mdat pair
authorMartin Storsjö <martin@martin.st>
Sun, 9 Aug 2015 19:40:39 +0000 (22:40 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 10 Aug 2015 06:46:14 +0000 (09:46 +0300)
commit5f200bbf98efe50f63d0515b115d2ba8dae297bc
treec4d10daab2d82a555cdef2e543de7a14a29012d6
parent83f254e65f938657a4dbec711e4c94252a72daf9
movenc: Place the sidx index after the initial moov/mdat pair

For fragmented files with non-empty moov, with a fragment index
(sidx), place the index after the initial moov/mdat pair.

Previously, for this pathological case, the index was written
at the start of the file.

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