diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-01-12 21:56:02 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-01-12 23:08:23 +0100 |
commit | 55b9ef18e4a139fc24a3b695cb3c176f3ced09b8 (patch) | |
tree | 8bf5602225fd9201124d905f83a03ec4b4d45ca5 /libavcodec/h264.c | |
parent | 0a60780c7fe72e2f9cc41efc152b3807954b7820 (diff) | |
download | ffmpeg-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.c | 4 |
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> |