Commit 62b76dd1 authored by vitor's avatar vitor

Support passing parameters to filters.

Commited in SoC by Bobby Bingham on 2007-07-02 15:17:22


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11973 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e98f6a88
...@@ -257,12 +257,12 @@ AVFilterContext *avfilter_create_by_name(char *name) ...@@ -257,12 +257,12 @@ AVFilterContext *avfilter_create_by_name(char *name)
return avfilter_create(filt); return avfilter_create(filt);
} }
int avfilter_init_filter(AVFilterContext *filter) int avfilter_init_filter(AVFilterContext *filter, const char *args)
{ {
int ret, i; int ret, i;
if(filter->filter->init) 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 ++) for(i = 0; i < pad_count(filter->filter->outputs); i ++)
if(filter->outputs[i]) if(filter->outputs[i])
filter->filter->outputs[i].set_video_props(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