diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-10-07 12:33:00 -0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-10-08 21:55:31 +0200 |
commit | a8956eca1ff3b5b7f9aadbe6eb46536efeb2f828 (patch) | |
tree | 931420aa00adc71b5b173c5526a96d15cf6c2df7 /libavcodec/cabac.h | |
parent | 2830bce47e2eb29c76202f19017031ddc1f95dd3 (diff) |
cabac: Make CABAC states hardcoded
There is not much reason to generate such a small table at runtime.
Signed-off-by: Derek Buitenhuis <derekb@vimeo.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r-- | libavcodec/cabac.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h index 426f338e34..40eefed381 100644 --- a/libavcodec/cabac.h +++ b/libavcodec/cabac.h @@ -31,7 +31,7 @@ #include "put_bits.h" -extern uint8_t ff_h264_cabac_tables[512 + 4*2*64 + 4*64 + 63]; +extern const uint8_t ff_h264_cabac_tables[512 + 4*2*64 + 4*64 + 63]; #define H264_NORM_SHIFT_OFFSET 0 #define H264_LPS_RANGE_OFFSET 512 #define H264_MLPS_STATE_OFFSET 1024 @@ -49,6 +49,5 @@ typedef struct CABACContext{ }CABACContext; void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size); -void ff_init_cabac_states(void); #endif /* AVCODEC_CABAC_H */ |