mov: Free intermediate arrays in the normal cleanup function
authorMartin Storsjö <martin@martin.st>
Mon, 13 Jan 2014 12:43:23 +0000 (14:43 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 15 Jan 2014 07:57:26 +0000 (09:57 +0200)
commitd51f09962d5b4bc999fb70c040f330dd1873212e
tree475cc024c6374fff09e2de121f426c8afd27eb15
parentd0cd2a8c461f975eeaeff2900e95fa8ec0931ef8
mov: Free intermediate arrays in the normal cleanup function

These arrays are normally freed at the end of mov_read_trak,
but make sure they're freed in case mov_read_trak returned
early (due to errors) or in case the atoms that allocate arrays
are encountered at some other point than within a trak (which
we don't have checks against).

Sample-Id: 00000496-google
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/mov.c