1
0
Fork 0

qt-faststart: Avoid leaking memory if encountering a file with double ftyp atoms

backport r23065 by mstorsjo


Originally committed as revision 23190 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
This commit is contained in:
Reinhard Tartler 2010-05-19 13:51:54 +00:00
parent 40630a90ed
commit 369e37e900
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ int main(int argc, char *argv[])
/* keep ftyp atom */
if (atom_type == FTYP_ATOM) {
ftyp_atom_size = atom_size;
free(ftyp_atom);
ftyp_atom = malloc(ftyp_atom_size);
if (!ftyp_atom) {
printf ("could not allocate %"PRIu64" byte for ftyp atom\n",