Commit dbb37657 authored by Baptiste Coudurier's avatar Baptiste Coudurier

free in case of multiple type == 2

Originally committed as revision 12263 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2f4568e5
...@@ -254,6 +254,7 @@ static int mov_read_dref(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) ...@@ -254,6 +254,7 @@ static int mov_read_dref(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
if (len&1) if (len&1)
len += 1; len += 1;
if (type == 2) { // absolute path if (type == 2) { // absolute path
av_free(dref->path);
dref->path = av_mallocz(len+1); dref->path = av_mallocz(len+1);
if (!dref->path) if (!dref->path)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment