[FFmpeg-cvslog] r18730 - in trunk/libavcodec: vc1.c wavpack.c

banan subversion
Sat May 2 11:08:40 CEST 2009


Author: banan
Date: Sat May  2 11:08:40 2009
New Revision: 18730

Log:
Remove dead assignments found by CSA

Modified:
   trunk/libavcodec/vc1.c
   trunk/libavcodec/wavpack.c

Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	Sat May  2 07:17:20 2009	(r18729)
+++ trunk/libavcodec/vc1.c	Sat May  2 11:08:40 2009	(r18730)
@@ -2387,7 +2387,7 @@ static int vc1_decode_i_block(VC1Context
     GetBitContext *gb = &v->s.gb;
     MpegEncContext *s = &v->s;
     int dc_pred_dir = 0; /* Direction of the DC prediction used */
-    int run_diff, i;
+    int i;
     int16_t *dc_val;
     int16_t *ac_val, *ac_val2;
     int dcdiff;
@@ -2433,7 +2433,6 @@ static int vc1_decode_i_block(VC1Context
         block[0] = dcdiff * s->c_dc_scale;
     }
     /* Skip ? */
-    run_diff = 0;
     if (!coded) {
         goto not_coded;
     }
@@ -2554,7 +2553,7 @@ static int vc1_decode_i_block_adv(VC1Con
     GetBitContext *gb = &v->s.gb;
     MpegEncContext *s = &v->s;
     int dc_pred_dir = 0; /* Direction of the DC prediction used */
-    int run_diff, i;
+    int i;
     int16_t *dc_val;
     int16_t *ac_val, *ac_val2;
     int dcdiff;
@@ -2604,8 +2603,6 @@ static int vc1_decode_i_block_adv(VC1Con
     } else {
         block[0] = dcdiff * s->c_dc_scale;
     }
-    /* Skip ? */
-    run_diff = 0;
 
     //AC Decoding
     i = 1;
@@ -2751,7 +2748,7 @@ static int vc1_decode_intra_block(VC1Con
     GetBitContext *gb = &v->s.gb;
     MpegEncContext *s = &v->s;
     int dc_pred_dir = 0; /* Direction of the DC prediction used */
-    int run_diff, i;
+    int i;
     int16_t *dc_val;
     int16_t *ac_val, *ac_val2;
     int dcdiff;
@@ -2809,8 +2806,6 @@ static int vc1_decode_intra_block(VC1Con
     } else {
         block[0] = dcdiff * s->c_dc_scale;
     }
-    /* Skip ? */
-    run_diff = 0;
 
     //AC Decoding
     i = 1;

Modified: trunk/libavcodec/wavpack.c
==============================================================================
--- trunk/libavcodec/wavpack.c	Sat May  2 07:17:20 2009	(r18729)
+++ trunk/libavcodec/wavpack.c	Sat May  2 11:08:40 2009	(r18730)
@@ -360,7 +360,6 @@ static inline int wv_unpack_stereo(Wavpa
         if(last) break;
         for(i = 0; i < s->terms; i++){
             t = s->decorr[i].value;
-            j = 0;
             if(t > 0){
                 if(t > 8){
                     if(t & 1){



More information about the ffmpeg-cvslog mailing list