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

bcoudurier subversion
Fri Mar 21 11:47:14 CET 2008


Author: bcoudurier
Date: Fri Mar 21 11:47:14 2008
New Revision: 12529

Log:
cannot free AVStream like this, and return ENOMEM

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Fri Mar 21 11:47:14 2008
@@ -1204,10 +1204,7 @@ static int mov_read_trak(MOVContext *c, 
     st = av_new_stream(c->fc, c->fc->nb_streams);
     if (!st) return -2;
     sc = av_mallocz(sizeof(MOVStreamContext));
-    if (!sc) {
-        av_free(st);
-        return -1;
-    }
+    if (!sc) return AVERROR(ENOMEM);
 
     st->priv_data = sc;
     st->codec->codec_type = CODEC_TYPE_DATA;




More information about the ffmpeg-cvslog mailing list