[Ffmpeg-devel] [PATCH] remove unused variables

Diego Biurrun diego
Sun Oct 1 23:36:53 CEST 2006


This patch kills a few unused variables and the corresponding warnings
along with them.  It's trivial so I'll apply tomorrow.  I'm not even
sure if it's worth sending a patch for such things, but here it is just
in case.

Diego
-------------- next part --------------
Index: libavcodec/vp3.c
===================================================================
--- libavcodec/vp3.c	(revision 6405)
+++ libavcodec/vp3.c	(working copy)
@@ -607,7 +607,7 @@
 {
     int ac_scale_factor = s->coded_ac_scale_factor[s->quality_index];
     int dc_scale_factor = s->coded_dc_scale_factor[s->quality_index];
-    int i, j, plane, inter, qri, bmi, bmj, qistart;
+    int i, plane, inter, qri, bmi, bmj, qistart;
 
     debug_vp3("  vp3: initializing dequantization tables\n");
 
Index: libavcodec/vmnc.c
===================================================================
--- libavcodec/vmnc.c	(revision 6405)
+++ libavcodec/vmnc.c	(working copy)
@@ -115,7 +115,7 @@
 
 static void put_cursor(uint8_t *dst, int stride, VmncContext *c, int dx, int dy)
 {
-    int i, j, t;
+    int i, j;
     int w, h, x, y;
     w = c->cur_w;
     if(c->width < c->cur_x + c->cur_w) w = c->width - c->cur_x;
Index: libavcodec/snow.c
===================================================================
--- libavcodec/snow.c	(revision 6405)
+++ libavcodec/snow.c	(working copy)
@@ -2938,7 +2938,6 @@
     Plane *p= &s->plane[plane_index];
     const int block_size = MB_SIZE >> s->block_max_depth;
     const int block_w    = plane_index ? block_size/2 : block_size;
-    const uint8_t *obmc  = plane_index ? obmc_tab[s->block_max_depth+1] : obmc_tab[s->block_max_depth];
     const int obmc_stride= plane_index ? block_size : 2*block_size;
     const int ref_stride= s->current_picture.linesize[plane_index];
     uint8_t *dst= s->current_picture.data[plane_index];
@@ -3041,7 +3040,6 @@
     uint8_t *src= s-> input_picture.data[plane_index];
     static const DWTELEM zero_dst[4096]; //FIXME
     const int b_stride = s->b_width << s->block_max_depth;
-    const int b_height = s->b_height<< s->block_max_depth;
     const int w= p->width;
     const int h= p->height;
     int distortion= 0;
Index: libavcodec/eval.c
===================================================================
--- libavcodec/eval.c	(revision 6405)
+++ libavcodec/eval.c	(working copy)
@@ -86,7 +86,6 @@
  */
 static double av_strtod(const char *name, char **tail) {
     double d;
-    int p = 0;
     char *next;
     d = strtod(name, &next);
     /* if parsing succeeded, check for and interpret postfixes */
Index: libavcodec/vc1.c
===================================================================
--- libavcodec/vc1.c	(revision 6405)
+++ libavcodec/vc1.c	(working copy)
@@ -2108,8 +2108,6 @@
  */
 static inline void vc1_b_mc(VC1Context *v, int dmv_x[2], int dmv_y[2], int direct, int mode)
 {
-    int t;
-
     if(v->use_ic) {
         v->mv_mode2 = v->mv_mode;
         v->mv_mode = MV_PMODE_INTENSITY_COMP;
Index: libavformat/rm.c
===================================================================
--- libavformat/rm.c	(revision 6405)
+++ libavformat/rm.c	(working copy)
@@ -645,7 +645,7 @@
     unsigned int tag, v;
     int tag_size, size, codec_data_size, i;
     int64_t codec_pos;
-    unsigned int h263_hack_version, start_time, duration;
+    unsigned int start_time, duration;
     char buf[128];
     int flags = 0;
 
Index: libswscale/swscale_template.c
===================================================================
--- libswscale/swscale_template.c	(revision 20012)
+++ libswscale/swscale_template.c	(working copy)
@@ -1035,8 +1035,8 @@
 				    int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
 			    uint8_t *dest, long dstW, long dstY)
 {
-	long dummy=0;
 #ifdef HAVE_MMX
+    long dummy=0;
     if(c->flags & SWS_ACCURATE_RND){
                 switch(c->dstFormat){
                 case PIX_FMT_RGB32:



More information about the ffmpeg-devel mailing list