diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-10-07 18:39:46 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-10 10:52:18 +0300 |
commit | 8a73b8c5b42d02c0056f751e290c5cd60c6b802e (patch) | |
tree | ec7dabb501bb934aa67550ee836fd47d20674123 /libavcodec/cabac.h | |
parent | 9692fd762296f17350f0be2826c361d187a4be6e (diff) |
cabac: Make cabac starts hardcoded
There's not much reason to generate such a small table at runtime.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
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 eb6b521d3e..b15a70bb69 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 @@ -52,6 +52,5 @@ typedef struct CABACContext{ void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size); void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size); -void ff_init_cabac_states(void); #endif /* AVCODEC_CABAC_H */ |