diff options
author | Måns Rullgård <mans@mansr.com> | 2010-02-21 21:48:40 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-02-21 21:48:40 +0000 |
commit | 7cd7d19e86f98a0806429a623bb0b010a24ce93a (patch) | |
tree | 982c80601e958e175cd734f3e2a61bbe4865d145 /libavcodec | |
parent | 48960b8f2496c03600e9d139521a1cf8f4a07e55 (diff) | |
download | ffmpeg-7cd7d19e86f98a0806429a623bb0b010a24ce93a.tar.gz |
Deobfuscate LE SHOW_[SU]BITS; these are simple sign/zero-extend
Originally committed as revision 21948 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/get_bits.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index bb40ff4f38..7c4ee4386c 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -166,10 +166,10 @@ for examples see get_bits, show_bits, skip_bits, get_vlc # ifdef ALT_BITSTREAM_READER_LE # define SHOW_UBITS(name, gb, num)\ - ((name##_cache) & (NEG_USR32(0xffffffff,num))) + zero_extend(name##_cache, num) # define SHOW_SBITS(name, gb, num)\ - NEG_SSR32((name##_cache)<<(32-(num)), num) + sign_extend(name##_cache, num) # else # define SHOW_UBITS(name, gb, num)\ NEG_USR32(name##_cache, num) |