[FFmpeg-cvslog] r21948 - trunk/libavcodec/get_bits.h

mru subversion
Sun Feb 21 22:48:40 CET 2010


Author: mru
Date: Sun Feb 21 22:48:40 2010
New Revision: 21948

Log:
Deobfuscate LE SHOW_[SU]BITS; these are simple sign/zero-extend

Modified:
   trunk/libavcodec/get_bits.h

Modified: trunk/libavcodec/get_bits.h
==============================================================================
--- trunk/libavcodec/get_bits.h	Sun Feb 21 22:48:37 2010	(r21947)
+++ trunk/libavcodec/get_bits.h	Sun Feb 21 22:48:40 2010	(r21948)
@@ -166,10 +166,10 @@ for examples see get_bits, show_bits, sk
 
 # 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)



More information about the ffmpeg-cvslog mailing list