From 7cd7d19e86f98a0806429a623bb0b010a24ce93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sun, 21 Feb 2010 21:48:40 +0000 Subject: [PATCH] Deobfuscate LE SHOW_[SU]BITS; these are simple sign/zero-extend Originally committed as revision 21948 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/get_bits.h | 4 ++-- 1 file 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)