diff options
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r-- | libavcodec/cabac.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h index eb6b521..f9eafed 100644 --- a/libavcodec/cabac.h +++ b/libavcodec/cabac.h @@ -31,7 +31,12 @@ #include "put_bits.h" -extern uint8_t ff_h264_cabac_tables[512 + 4*2*64 + 4*64 + 63]; +#if CONFIG_HARDCODED_TABLES +#define CABAC_TABLE_CONST const +#else +#define CABAC_TABLE_CONST +#endif +extern CABAC_TABLE_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 |