Commit f55438f3 authored by michael's avatar michael

Remove several useless writes to variables, found by CSA.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18579 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 79f2dfed
...@@ -401,7 +401,6 @@ static inline int get_block_rate(MpegEncContext * s, DCTELEM block[64], int bloc ...@@ -401,7 +401,6 @@ static inline int get_block_rate(MpegEncContext * s, DCTELEM block[64], int bloc
else rate+= s->intra_ac_vlc_last_length[UNI_AC_ENC_INDEX(j-last-1, level)]; else rate+= s->intra_ac_vlc_last_length[UNI_AC_ENC_INDEX(j-last-1, level)];
}else }else
rate += s->ac_esc_length; rate += s->ac_esc_length;
level-= 64;
last= j; last= j;
} }
...@@ -1552,7 +1551,7 @@ void ff_h263_loop_filter(MpegEncContext * s){ ...@@ -1552,7 +1551,7 @@ void ff_h263_loop_filter(MpegEncContext * s){
#if CONFIG_ENCODERS #if CONFIG_ENCODERS
static int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr) static int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr)
{ {
int x, y, wrap, a, c, pred_dc, scale; int x, y, wrap, a, c, pred_dc;
int16_t *dc_val; int16_t *dc_val;
/* find prediction */ /* find prediction */
...@@ -1561,13 +1560,11 @@ static int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr) ...@@ -1561,13 +1560,11 @@ static int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr)
y = 2 * s->mb_y + ((n & 2) >> 1); y = 2 * s->mb_y + ((n & 2) >> 1);
wrap = s->b8_stride; wrap = s->b8_stride;
dc_val = s->dc_val[0]; dc_val = s->dc_val[0];
scale = s->y_dc_scale;
} else { } else {
x = s->mb_x; x = s->mb_x;
y = s->mb_y; y = s->mb_y;
wrap = s->mb_stride; wrap = s->mb_stride;
dc_val = s->dc_val[n - 4 + 1]; dc_val = s->dc_val[n - 4 + 1];
scale = s->c_dc_scale;
} }
/* B C /* B C
* A X * A X
...@@ -1589,7 +1586,6 @@ static int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr) ...@@ -1589,7 +1586,6 @@ static int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr)
pred_dc = c; pred_dc = c;
/* we assume pred is positive */ /* we assume pred is positive */
//pred_dc = (pred_dc + (scale >> 1)) / scale;
*dc_val_ptr = &dc_val[x + y * wrap]; *dc_val_ptr = &dc_val[x + y * wrap];
return pred_dc; return pred_dc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment