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
This commit is contained in:
Vitor Sessak 2008-02-15 21:36:50 +00:00
parent e6f560bbaa
commit a360f71e3a
1 changed files with 2 additions and 2 deletions

View File

@ -337,12 +337,12 @@ AVFilterContext *avfilter_create_by_name(char *name, char *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;
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;
}