Commit 89e64908 authored by Vitor Sessak's avatar Vitor Sessak

Support passing parameters to filters.

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
parent 92beffdc
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment