diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-03 21:01:08 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-03 21:01:08 +0100 |
commit | 36e30d7ab9b81415258cc6f8e22b55e02af36568 (patch) | |
tree | 1feb15f6987d0286eee488f2be56f7ac1e7acb7b | |
parent | ea199c707c948db4ba82f532c5192053119e5a41 (diff) | |
download | ffmpeg-36e30d7ab9b81415258cc6f8e22b55e02af36568.tar.gz |
proresdec2: fix for removed a32 reader
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/proresdec2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/proresdec2.c b/libavcodec/proresdec2.c index 10a677d929..03bb109f46 100644 --- a/libavcodec/proresdec2.c +++ b/libavcodec/proresdec2.c @@ -26,7 +26,7 @@ //#define DEBUG -#define A32_BITSTREAM_READER +#define LONG_BITSTREAM_READER #include "avcodec.h" #include "get_bits.h" @@ -333,7 +333,7 @@ static av_always_inline void decode_ac_coeffs(AVCodecContext *avctx, GetBitConte block_mask = blocks_per_slice - 1; for (pos = block_mask;;) { - bits_left = gb->size_in_bits - (((uint8_t*)re_buffer_ptr - gb->buffer)*8 - 32 + re_bit_count); + bits_left = gb->size_in_bits - re_index; if (!bits_left || (bits_left < 32 && !SHOW_UBITS(re, gb, bits_left))) break; |