aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.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/h264.c
parent0a60780c7fe72e2f9cc41efc152b3807954b7820 (diff)
downloadffmpeg-55b9ef18e4a139fc24a3b695cb3c176f3ced09b8.tar.gz
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/h264.c')
-rw-r--r--libavcodec/h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index cee16e7577..581848be16 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -27,6 +27,8 @@
#include "libavutil/imgutils.h"
#include "internal.h"
+#include "cabac.h"
+#include "cabac_functions.h"
#include "dsputil.h"
#include "avcodec.h"
#include "mpegvideo.h"
@@ -40,8 +42,6 @@
#include "vdpau_internal.h"
#include "libavutil/avassert.h"
-#include "cabac.h"
-
//#undef NDEBUG
#include <assert.h>