Commit a360f71e authored by Vitor Sessak's avatar Vitor Sessak

Allow code to pass data to filters it creates.

Commited in SoC by Bobby Bingham on 2007-07-15 16:45:50

Originally committed as revision 11991 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e6f560bb
...@@ -337,12 +337,12 @@ AVFilterContext *avfilter_create_by_name(char *name, char *inst_name) ...@@ -337,12 +337,12 @@ AVFilterContext *avfilter_create_by_name(char *name, char *inst_name)
return avfilter_create(filt, inst_name); return avfilter_create(filt, inst_name);
} }
int avfilter_init_filter(AVFilterContext *filter, const char *args) int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque)
{ {
int ret, i; int ret, i;
if(filter->filter->init) if(filter->filter->init)
if((ret = filter->filter->init(filter, args))) return ret; if((ret = filter->filter->init(filter, args, opaque))) return ret;
return 0; return 0;
} }
......
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