Allow code to pass data to filters it creates.
authorVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:36:50 +0000 (21:36 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:36:50 +0000 (21:36 +0000)
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

libavfilter/avfilter.c

index f897f1a..d65e639 100644 (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;
 }