Support passing parameters to filters.
authorVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:35:43 +0000 (21:35 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:35:43 +0000 (21:35 +0000)
Commited in SoC by Bobby Bingham on 2007-07-02 15:17:22

Originally committed as revision 11973 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/avfilter.c

index cc16795..ea8df43 100644 (file)
@@ -257,12 +257,12 @@ AVFilterContext *avfilter_create_by_name(char *name)
     return avfilter_create(filt);
 }
 
-int avfilter_init_filter(AVFilterContext *filter)
+int avfilter_init_filter(AVFilterContext *filter, const char *args)
 {
     int ret, i;
 
     if(filter->filter->init)
-        if((ret = filter->filter->init(filter))) return ret;
+        if((ret = filter->filter->init(filter, args))) return ret;
     for(i = 0; i < pad_count(filter->filter->outputs); i ++)
         if(filter->outputs[i])
             filter->filter->outputs[i].set_video_props(filter->outputs[i]);