diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-04-17 18:16:36 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-04-17 18:16:36 +0000 |
commit | feda8550a9f59095009614030ef76c357fdf70aa (patch) | |
tree | 667630cc6be5d6ed85bb1b9c86f5e3ad6dde2de0 /libavcodec | |
parent | b278a1ed1c0dd5cadf50a9a3b761eaecebbc1276 (diff) | |
download | ffmpeg-feda8550a9f59095009614030ef76c357fdf70aa.tar.gz |
Remove several useless writes to variables, found by CSA.
Originally committed as revision 18579 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h263.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index ebf6ccb43b..7c7a82e577 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -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->ac_esc_length; - level-= 64; last= j; } @@ -1552,7 +1551,7 @@ void ff_h263_loop_filter(MpegEncContext * s){ #if CONFIG_ENCODERS 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; /* find prediction */ @@ -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); wrap = s->b8_stride; dc_val = s->dc_val[0]; - scale = s->y_dc_scale; } else { x = s->mb_x; y = s->mb_y; wrap = s->mb_stride; dc_val = s->dc_val[n - 4 + 1]; - scale = s->c_dc_scale; } /* B C * A X @@ -1589,7 +1586,6 @@ static int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr) pred_dc = c; /* we assume pred is positive */ - //pred_dc = (pred_dc + (scale >> 1)) / scale; *dc_val_ptr = &dc_val[x + y * wrap]; return pred_dc; } |