[FFmpeg-soc] [soc]: r419 - libavfilter/avfilter.c

koorogi subversion at mplayerhq.hu
Sat Jul 14 22:13:57 CEST 2007


Author: koorogi
Date: Sat Jul 14 22:13:57 2007
New Revision: 419

Log:
Use av_strdup/av_free instead of strdup/free


Modified:
   libavfilter/avfilter.c

Modified: libavfilter/avfilter.c
==============================================================================
--- libavfilter/avfilter.c	(original)
+++ libavfilter/avfilter.c	Sat Jul 14 22:13:57 2007
@@ -322,7 +322,7 @@ AVFilterContext *avfilter_create(AVFilte
     ret->av_class = av_mallocz(sizeof(AVClass));
     ret->av_class->item_name = filter_name;
     ret->filter   = filter;
-    ret->name     = inst_name ? strdup(inst_name) : NULL;
+    ret->name     = inst_name ? av_strdup(inst_name) : NULL;
     ret->inputs   = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->inputs));
     ret->outputs  = av_mallocz(sizeof(AVFilterLink*) * pad_count(filter->outputs));
     ret->priv     = av_mallocz(filter->priv_size);
@@ -348,7 +348,7 @@ void avfilter_destroy(AVFilterContext *f
         av_free(filter->outputs[i]);
     }
 
-    free   (filter->name);
+    av_free(filter->name);
     av_free(filter->inputs);
     av_free(filter->outputs);
     av_free(filter->priv);



More information about the FFmpeg-soc mailing list