diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-08-31 12:42:51 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-09-06 20:59:20 +0200 |
commit | 092d1977cc7146f20c8db2155e7d648afb300de7 (patch) | |
tree | 0dcaf9a988d024ae0d5b90ae204db839edf5b11c /libavcodec/cabac.h | |
parent | 0f1281b2b8ac6f7d2a0b8d18f6fbba9ed7a1bd08 (diff) | |
download | ffmpeg-092d1977cc7146f20c8db2155e7d648afb300de7.tar.gz |
cabac: Allow hardcoding CABAC table.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
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 eb6b521d3e..f9eafed105 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 |