OSDN Git Service

mov: Free an earlier allocated array if allocating a new one
authorMartin Storsjö <martin@martin.st>
Mon, 13 Jan 2014 12:46:07 +0000 (14:46 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 15 Jan 2014 07:57:38 +0000 (09:57 +0200)
commit2620df13104ddaa136158eb6bb1195adbf9d7692
tree30aced5c1eeae06eb4dc9bf1f7e85f7f2725824a
parentd51f09962d5b4bc999fb70c040f330dd1873212e
mov: Free an earlier allocated array if allocating a new one

It could probably also be considered an error if the pointer isn't
null at this point, but then we might risk rejecting some
slightly broken files that we might have handled so far.

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