[FFmpeg-soc] [soc]: r559 - in libavfilter: avfilter.h vf_crop.c vf_slicify.c vo_sdl.c vsrc_ppm.c

koorogi subversion at mplayerhq.hu
Mon Jul 30 20:53:17 CEST 2007


Author: koorogi
Date: Mon Jul 30 20:53:17 2007
New Revision: 559

Log:
Make the opaque init parameter non-const.


Modified:
   libavfilter/avfilter.h
   libavfilter/vf_crop.c
   libavfilter/vf_slicify.c
   libavfilter/vo_sdl.c
   libavfilter/vsrc_ppm.c

Modified: libavfilter/avfilter.h
==============================================================================
--- libavfilter/avfilter.h	(original)
+++ libavfilter/avfilter.h	Mon Jul 30 20:53:17 2007
@@ -169,7 +169,7 @@ typedef struct
      * opaque is data provided by the code requesting creation of the filter,
      * and is used to pass data to the filter.
      */
-    int (*init)(AVFilterContext *ctx, const char *args, const void *opaque);
+    int (*init)(AVFilterContext *ctx, const char *args, void *opaque);
     void (*uninit)(AVFilterContext *ctx);
 
     const AVFilterPad *inputs;  /// NULL terminated list of inputs. NULL if none

Modified: libavfilter/vf_crop.c
==============================================================================
--- libavfilter/vf_crop.c	(original)
+++ libavfilter/vf_crop.c	Mon Jul 30 20:53:17 2007
@@ -30,7 +30,7 @@ typedef struct
     int cx, cy, cw, ch;
 } CropContext;
 
-static int init(AVFilterContext *ctx, const char *args, const void *opaque)
+static int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     CropContext *crop = ctx->priv;
 

Modified: libavfilter/vf_slicify.c
==============================================================================
--- libavfilter/vf_slicify.c	(original)
+++ libavfilter/vf_slicify.c	Mon Jul 30 20:53:17 2007
@@ -29,7 +29,7 @@ typedef struct {
     int vshift;     ///< chroma subsampling shift
 } SliceContext;
 
-static int init(AVFilterContext *ctx, const char *args, const void *opaque)
+static int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     SliceContext *slice = ctx->priv;
 

Modified: libavfilter/vo_sdl.c
==============================================================================
--- libavfilter/vo_sdl.c	(original)
+++ libavfilter/vo_sdl.c	Mon Jul 30 20:53:17 2007
@@ -31,7 +31,7 @@ typedef struct
     int64_t pts;
 } SDLContext;
 
-static int init(AVFilterContext *ctx, const char *args, const void *opaque)
+static int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     SDLContext *sdl = ctx->priv;
 

Modified: libavfilter/vsrc_ppm.c
==============================================================================
--- libavfilter/vsrc_ppm.c	(original)
+++ libavfilter/vsrc_ppm.c	Mon Jul 30 20:53:17 2007
@@ -29,7 +29,7 @@ typedef struct {
     AVFilterPicRef *pic;
 } PPMContext;
 
-static int init(AVFilterContext *ctx, const char *args, const void *opaque)
+static int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     PPMContext *ppm = ctx->priv;
     FILE *in;



More information about the FFmpeg-soc mailing list