changeset 11238:5401fc245167 libavcodec

Deobfuscate LE SHOW_[SU]BITS; these are simple sign/zero-extend
author mru
date Sun, 21 Feb 2010 21:48:40 +0000
parents c975efe95584
children af94d2ee8831
files get_bits.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/get_bits.h	Sun Feb 21 21:48:37 2010 +0000
+++ b/get_bits.h	Sun Feb 21 21:48:40 2010 +0000
@@ -166,10 +166,10 @@
 
 # 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)