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
pull/126/head
Vitor Sessak 17 years ago
parent e6f560bbaa
commit a360f71e3a
  1. 4
      libavfilter/avfilter.c

@ -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;
}

Loading…
Cancel
Save