changeset 9590:2a52dd5a684a libavcodec

Remove dead assignments found by CSA
author banan
date Sat, 02 May 2009 09:08:40 +0000
parents 3f7496cd7cab
children 483ba97736f8
files vc1.c wavpack.c
diffstat 2 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Sat May 02 05:17:20 2009 +0000
+++ b/vc1.c	Sat May 02 09:08:40 2009 +0000
@@ -2387,7 +2387,7 @@
     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 @@
         block[0] = dcdiff * s->c_dc_scale;
     }
     /* Skip ? */
-    run_diff = 0;
     if (!coded) {
         goto not_coded;
     }
@@ -2554,7 +2553,7 @@
     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 @@
     } else {
         block[0] = dcdiff * s->c_dc_scale;
     }
-    /* Skip ? */
-    run_diff = 0;
 
     //AC Decoding
     i = 1;
@@ -2751,7 +2748,7 @@
     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 @@
     } else {
         block[0] = dcdiff * s->c_dc_scale;
     }
-    /* Skip ? */
-    run_diff = 0;
 
     //AC Decoding
     i = 1;
--- a/wavpack.c	Sat May 02 05:17:20 2009 +0000
+++ b/wavpack.c	Sat May 02 09:08:40 2009 +0000
@@ -360,7 +360,6 @@
         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){