[FFmpeg-cvslog] r12263 - trunk/libavformat/mov.c

bcoudurier subversion
Wed Feb 27 10:31:42 CET 2008


Author: bcoudurier
Date: Wed Feb 27 10:31:41 2008
New Revision: 12263

Log:
free in case of multiple type == 2

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Wed Feb 27 10:31:41 2008
@@ -254,6 +254,7 @@ static int mov_read_dref(MOVContext *c, 
                 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);




More information about the ffmpeg-cvslog mailing list