diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-05-11 01:50:46 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-05-11 01:50:46 +0000 |
commit | ef56de328ffc990ee0b411f1ff3d86a25d7d1b98 (patch) | |
tree | 910e72f11218cb94812f5fec28768beda1de3ce0 /libavcodec/indeo2.c | |
parent | cea27ac7144ddc1451b84a30a6d8cf1ad271dfb5 (diff) | |
download | ffmpeg-ef56de328ffc990ee0b411f1ff3d86a25d7d1b98.tar.gz |
support the LE reader, so it can be tested a little
Originally committed as revision 4216 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/indeo2.c')
-rw-r--r-- | libavcodec/indeo2.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libavcodec/indeo2.c b/libavcodec/indeo2.c index 1cee019ddd..25561ec2d7 100644 --- a/libavcodec/indeo2.c +++ b/libavcodec/indeo2.c @@ -22,7 +22,7 @@ * @file indeo2.c * Intel Indeo 2 decoder. */ - +#define ALT_BITSTREAM_READER_LE #include "avcodec.h" #include "bitstream.h" #include "indeo2data.h" @@ -156,10 +156,10 @@ static int ir2_decode_frame(AVCodecContext *avctx, s->decode_delta = buf[18]; /* decide whether frame uses deltas or not */ - +#ifndef ALT_BITSTREAM_READER_LE for (i = 0; i < buf_size; i++) buf[i] = ff_reverse[buf[i]]; - +#endif start = 48; /* hardcoded for now */ init_get_bits(&s->gb, buf + start, buf_size - start); @@ -198,8 +198,12 @@ static int ir2_decode_init(AVCodecContext *avctx){ if (!ir2_vlc.table) init_vlc(&ir2_vlc, CODE_VLC_BITS, IR2_CODES, &ir2_codes[0][1], 4, 2, - &ir2_codes[0][0], 4, 2, 1); - +#ifdef ALT_BITSTREAM_READER_LE + &ir2_codes[0][0], 4, 2, INIT_VLC_USE_STATIC | INIT_VLC_LE); +#else + &ir2_codes[0][0], 4, 2, INIT_VLC_USE_STATIC); +#endif + return 0; } |