Mercurial > libavcodec.hg
diff indeo2.c @ 2664:f20c1cdfce76 libavcodec
support the LE reader, so it can be tested a little
author | michael |
---|---|
date | Wed, 11 May 2005 01:50:46 +0000 |
parents | 0a55e35d3e5e |
children | 7a411f408d74 |
line wrap: on
line diff
--- a/indeo2.c Wed May 11 01:46:13 2005 +0000 +++ b/indeo2.c Wed May 11 01:50:46 2005 +0000 @@ -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 @@ 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 @@ 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; }