[FFmpeg-cvslog] lavfi/ocv: fix build after fd6228e65.

Clément Bœsch git at videolan.org
Fri Apr 12 12:38:16 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Apr 12 12:37:33 2013 +0200| [51e71d6e11271b9b891f53247a1969a0ab10b437] | committer: Clément Bœsch

lavfi/ocv: fix build after fd6228e65.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=51e71d6e11271b9b891f53247a1969a0ab10b437
---

 libavfilter/vf_libopencv.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index 342af38..cbaf8f7 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -74,7 +74,7 @@ typedef struct {
     const AVClass *class;
     char *name;
     char *params;
-    int (*init)(AVFilterContext *ctx);
+    int (*init)(AVFilterContext *ctx, const char *args);
     void (*uninit)(AVFilterContext *ctx);
     void (*end_frame_filter)(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg);
     void *priv;
@@ -86,7 +86,7 @@ typedef struct {
     double param3, param4;
 } SmoothContext;
 
-static av_cold int smooth_init(AVFilterContext *ctx)
+static av_cold int smooth_init(AVFilterContext *ctx, const char *args)
 {
     OCVContext *ocv = ctx->priv;
     SmoothContext *smooth = ocv->priv;
@@ -252,7 +252,7 @@ typedef struct {
     IplConvKernel *kernel;
 } DilateContext;
 
-static av_cold int dilate_init(AVFilterContext *ctx)
+static av_cold int dilate_init(AVFilterContext *ctx, const char *args)
 {
     OCVContext *ocv = ctx->priv;
     DilateContext *dilate = ocv->priv;
@@ -306,7 +306,7 @@ static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplIma
 typedef struct {
     const char *name;
     size_t priv_size;
-    int  (*init)(AVFilterContext *ctx);
+    int  (*init)(AVFilterContext *ctx, const char *args);
     void (*uninit)(AVFilterContext *ctx);
     void (*end_frame_filter)(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg);
 } OCVFilterEntry;
@@ -331,7 +331,7 @@ static av_cold int init(AVFilterContext *ctx)
 
             if (!(ocv->priv = av_mallocz(entry->priv_size)))
                 return AVERROR(ENOMEM);
-            return ocv->init(ctx);
+            return ocv->init(ctx, ocv->params);
         }
     }
 



More information about the ffmpeg-cvslog mailing list