diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-10-09 00:59:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-10-09 00:59:42 +0000 |
commit | c010d69a75750a0c2479caf5818a6f30c4f07cbc (patch) | |
tree | 76e59986999b1dc3fbc683f7b2b1740597d813f2 /libavcodec/cabac.h | |
parent | 158256a13a5fde13f39145f04fde8972947992ef (diff) |
decrease ff_h264_norm_shift[] size
Originally committed as revision 6596 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r-- | libavcodec/cabac.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h index 4b89223b76..ff3994db07 100644 --- a/libavcodec/cabac.h +++ b/libavcodec/cabac.h @@ -51,7 +51,7 @@ typedef struct CABACContext{ extern const uint8_t ff_h264_lps_range[64][4]; extern const uint8_t ff_h264_mps_state[64]; extern const uint8_t ff_h264_lps_state[64]; -extern const uint8_t ff_h264_norm_shift[256]; +extern const uint8_t ff_h264_norm_shift[128]; void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size); @@ -270,7 +270,7 @@ static void refill2(CABACContext *c){ int i, x; x= c->low ^ (c->low-1); - i= 9 - ff_h264_norm_shift[x>>(CABAC_BITS+1)]; + i= 7 - ff_h264_norm_shift[x>>(CABAC_BITS+1)]; x= -CABAC_MASK; @@ -393,7 +393,7 @@ asm( #endif renorm_cabac_decoder_once(c); }else{ - bit= ff_h264_norm_shift[RangeLPS>>17]; + bit= ff_h264_norm_shift[RangeLPS>>19]; c->low -= c->range; *state= c->lps_state[s]; c->range = RangeLPS<<bit; |