Support passing parameters to filters.
[ffmpeg.git] / libavfilter / avfilter.c
index cc167956c4db9e017ac3ab3e7c6ad3930bce4276..ea8df43a9851d80ad7b6448bc05f7dc9fd7770e9 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]);