[FFmpeg-soc] [soc]: r560 - in libavfilter: avfilter.c vf_slicify.c vo_sdl.c vsrc_ppm.c

koorogi subversion at mplayerhq.hu
Mon Jul 30 20:56:40 CEST 2007


Author: koorogi
Date: Mon Jul 30 20:56:40 2007
New Revision: 560

Log:
Fix warnings


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

Modified: libavfilter/avfilter.c
==============================================================================
--- libavfilter/avfilter.c	(original)
+++ libavfilter/avfilter.c	Mon Jul 30 20:56:40 2007
@@ -364,7 +364,7 @@ AVFilterContext *avfilter_create_by_name
 
 int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque)
 {
-    int ret, i;
+    int ret;
 
     if(filter->filter->init)
         if((ret = filter->filter->init(filter, args, opaque))) return ret;

Modified: libavfilter/vf_slicify.c
==============================================================================
--- libavfilter/vf_slicify.c	(original)
+++ libavfilter/vf_slicify.c	Mon Jul 30 20:56:40 2007
@@ -56,6 +56,8 @@ static int config_props(AVFilterLink *li
     /* ensure that slices play nice with chroma subsampling, and enforce
      * a reasonable minimum size for the slices */
     slice->h = FFMAX(8, slice->h & (-1 << slice->vshift));
+
+    return 0;
 }
 
 static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)

Modified: libavfilter/vo_sdl.c
==============================================================================
--- libavfilter/vo_sdl.c	(original)
+++ libavfilter/vo_sdl.c	Mon Jul 30 20:56:40 2007
@@ -33,8 +33,6 @@ typedef struct
 
 static int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
-    SDLContext *sdl = ctx->priv;
-
     if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE)) {
         av_log(ctx, AV_LOG_FATAL, "unable to initialize SDL: %s\n",
                SDL_GetError());

Modified: libavfilter/vsrc_ppm.c
==============================================================================
--- libavfilter/vsrc_ppm.c	(original)
+++ libavfilter/vsrc_ppm.c	Mon Jul 30 20:56:40 2007
@@ -32,8 +32,7 @@ typedef struct {
 static int init(AVFilterContext *ctx, const char *args, void *opaque)
 {
     PPMContext *ppm = ctx->priv;
-    FILE *in;
-    int max, x, y;
+    int max;
 
     if(!args) return -1;
     if(!(ppm->in = fopen(args, "r"))) return -1;
@@ -71,8 +70,8 @@ static void request_frame(AVFilterLink *
     PPMContext *ppm = link->src->priv;
     AVFilterPicRef *out;
 
-    int x, y;
-    uint8_t *row, *cur;
+    int y;
+    uint8_t *row;
 
     if(!ppm->pic) {
         ppm->pic = avfilter_get_video_buffer(link,



More information about the FFmpeg-soc mailing list