Hi,

On Thu, Jan 12, 2012 at 1:30 PM, Diego Biurrun <di...@biurrun.de> wrote:
> 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.
> ---
>  libavcodec/cabac.c           |    1 +
>  libavcodec/cabac.h           |  131 +----------------------------------
>  libavcodec/cabac_functions.h |  160 
> ++++++++++++++++++++++++++++++++++++++++++
>  libavcodec/h264.c            |    4 +-
>  libavcodec/h264.h            |    2 +-
>  libavcodec/h264_cabac.c      |    4 +-
>  libavcodec/x86/h264_i386.h   |    2 +-
>  7 files changed, 169 insertions(+), 135 deletions(-)
>  create mode 100644 libavcodec/cabac_functions.h

I'm fine with this if it's properly tested and solves your problem.

Ronald
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to