Browse Source

free in case of multiple type == 2

Originally committed as revision 12263 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 18 years ago
parent
commit
dbb3765779
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/mov.c

+ 1
- 0
libavformat/mov.c View File

@@ -254,6 +254,7 @@ static int mov_read_dref(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
if (len&1)
len += 1;
if (type == 2) { // absolute path
av_free(dref->path);
dref->path = av_mallocz(len+1);
if (!dref->path)
return AVERROR(ENOMEM);


Loading…
Cancel
Save