changeset 9591:483ba97736f8 libavcodec

Remove dead assignments found by CSA
author banan
date Sat, 02 May 2009 09:12:03 +0000
parents 2a52dd5a684a
children 05661d19f6d2
files h263.c mpegvideo_enc.c vp3.c
diffstat 3 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Sat May 02 09:08:40 2009 +0000
+++ b/h263.c	Sat May 02 09:12:03 2009 +0000
@@ -2825,7 +2825,6 @@
                                uint8_t *scan_table)
 {
     int i, last_non_zero;
-    const RLTable *rl;
     uint8_t *len_tab;
     const int last_index = s->block_last_index[n];
     int len=0;
@@ -2835,12 +2834,10 @@
         len += mpeg4_get_dc_length(intra_dc, n);
         if(last_index<1) return len;
         i = 1;
-        rl = &rl_intra;
         len_tab = uni_mpeg4_intra_rl_len;
     } else {
         if(last_index<0) return 0;
         i = 0;
-        rl = &rl_inter;
         len_tab = uni_mpeg4_inter_rl_len;
     }
 
--- a/mpegvideo_enc.c	Sat May 02 09:08:40 2009 +0000
+++ b/mpegvideo_enc.c	Sat May 02 09:12:03 2009 +0000
@@ -3264,7 +3264,6 @@
                         int n, int qscale){
     int16_t rem[64];
     DECLARE_ALIGNED_16(DCTELEM, d1[64]);
-    const int *qmat;
     const uint8_t *scantable= s->intra_scantable.scantable;
     const uint8_t *perm_scantable= s->intra_scantable.permutated;
 //    unsigned int threshold1, threshold2;
@@ -3308,7 +3307,6 @@
         dc= block[0]*q;
 //        block[0] = (block[0] + (q >> 1)) / q;
         start_i = 1;
-        qmat = s->q_intra_matrix[qscale];
 //        if(s->mpeg_quant || s->out_format == FMT_MPEG1)
 //            bias= 1<<(QMAT_SHIFT-1);
         length     = s->intra_ac_vlc_length;
@@ -3316,7 +3314,6 @@
     } else {
         dc= 0;
         start_i = 0;
-        qmat = s->q_inter_matrix[qscale];
         length     = s->inter_ac_vlc_length;
         last_length= s->inter_ac_vlc_last_length;
     }
--- a/vp3.c	Sat May 02 09:08:40 2009 +0000
+++ b/vp3.c	Sat May 02 09:12:03 2009 +0000
@@ -254,7 +254,6 @@
     int right_edge = 0;
     int bottom_edge = 0;
     int superblock_row_inc = 0;
-    int *hilbert = NULL;
     int mapping_index = 0;
 
     int current_macroblock;
@@ -366,7 +365,6 @@
     current_height = 0;
     superblock_row_inc = s->macroblock_width -
         (s->y_superblock_width * 2 - s->macroblock_width);
-    hilbert = hilbert_walk_mb;
     mapping_index = 0;
     current_macroblock = -1;
     for (i = 0; i < s->u_superblock_start; i++) {