diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2009-05-02 09:08:40 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2009-05-02 09:08:40 +0000 |
commit | 10c773c12ff2db5894fd8f76f5575cee1793d1c4 (patch) | |
tree | 4548684b0cf8e3a5e984efee16ffa5c2aca3f64f | |
parent | f26711978666cac479d77ecce9e7feb5fb8b702a (diff) | |
download | ffmpeg-10c773c12ff2db5894fd8f76f5575cee1793d1c4.tar.gz |
Remove dead assignments found by CSA
Originally committed as revision 18730 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/vc1.c | 11 | ||||
-rw-r--r-- | libavcodec/wavpack.c | 1 |
2 files changed, 3 insertions, 9 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index c536330089..3a5b447667 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -2387,7 +2387,7 @@ static int vc1_decode_i_block(VC1Context *v, DCTELEM block[64], int n, int coded 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 *v, DCTELEM block[64], int n, int coded 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(VC1Context *v, DCTELEM block[64], int n, int c 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(VC1Context *v, DCTELEM block[64], int n, int c } 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(VC1Context *v, DCTELEM block[64], int n, int c 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(VC1Context *v, DCTELEM block[64], int n, int c } else { block[0] = dcdiff * s->c_dc_scale; } - /* Skip ? */ - run_diff = 0; //AC Decoding i = 1; diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 88c0bd627e..c8ab858439 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -360,7 +360,6 @@ static inline int wv_unpack_stereo(WavpackContext *s, GetBitContext *gb, void *d 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){ |