summaryrefslogtreecommitdiff
path: root/libavcodec/cabac.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-01-12 21:56:02 +0100
committerDiego Biurrun <diego@biurrun.de>2012-01-12 23:08:23 +0100
commit55b9ef18e4a139fc24a3b695cb3c176f3ced09b8 (patch)
tree8bf5602225fd9201124d905f83a03ec4b4d45ca5 /libavcodec/cabac.c
parent0a60780c7fe72e2f9cc41efc152b3807954b7820 (diff)
cabac: split cabac.h into declarations and function definitions
This fixes standalone compilation of some decoders with --disable-optimizations. cabac.h defines some inline functions that use symbols from cabac.c. Without optimizations these inline functions are not eliminated and linking fails with references to non-existing symbols. Splitting the inline functions off into their own header and only #including it in the places where the inline functions are used allows #including cabac.h from anywhere without ill effects.
Diffstat (limited to 'libavcodec/cabac.c')
-rw-r--r--libavcodec/cabac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
index 11971f5984..4afcafb52b 100644
--- a/libavcodec/cabac.c
+++ b/libavcodec/cabac.c
@@ -29,6 +29,7 @@
#include "libavutil/common.h"
#include "get_bits.h"
#include "cabac.h"
+#include "cabac_functions.h"
static const uint8_t lps_range[64][4]= {
{128,176,208,240}, {128,167,197,227}, {128,158,187,216}, {123,150,178,205},