From d5c62122a7b26704bf867a1262df358623bf5edf Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 11 Oct 2012 18:50:30 +0200 Subject: Move av_reverse table to libavcodec It is only used in that library. --- libavcodec/asvdec.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libavcodec/asvdec.c') diff --git a/libavcodec/asvdec.c b/libavcodec/asvdec.c index ceb8f636a6..a546d24020 100644 --- a/libavcodec/asvdec.c +++ b/libavcodec/asvdec.c @@ -23,13 +23,14 @@ * ASUS V1/V2 decoder. */ -#include "libavutil/common.h" +#include "libavutil/attributes.h" #include "libavutil/mem.h" #include "asv.h" #include "avcodec.h" #include "put_bits.h" #include "dsputil.h" +#include "mathops.h" #include "mpeg12data.h" //#undef NDEBUG @@ -70,7 +71,7 @@ static av_cold void init_vlcs(ASV1Context *a){ //FIXME write a reversed bitstream reader to avoid the double reverse static inline int asv2_get_bits(GetBitContext *gb, int n){ - return av_reverse[ get_bits(gb, n) << (8-n) ]; + return ff_reverse[ get_bits(gb, n) << (8-n) ]; } static inline int asv1_get_level(GetBitContext *gb){ @@ -210,7 +211,7 @@ static int decode_frame(AVCodecContext *avctx, else{ int i; for(i=0; ibitstream_buffer[i]= av_reverse[ buf[i] ]; + a->bitstream_buffer[i]= ff_reverse[ buf[i] ]; } init_get_bits(&a->gb, a->bitstream_buffer, buf_size*8); -- cgit v1.2.3