Commit e274e84c authored by mru's avatar mru

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21948 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3af6966a
...@@ -166,10 +166,10 @@ for examples see get_bits, show_bits, skip_bits, get_vlc ...@@ -166,10 +166,10 @@ for examples see get_bits, show_bits, skip_bits, get_vlc
# ifdef ALT_BITSTREAM_READER_LE # ifdef ALT_BITSTREAM_READER_LE
# define SHOW_UBITS(name, gb, num)\ # define SHOW_UBITS(name, gb, num)\
((name##_cache) & (NEG_USR32(0xffffffff,num))) zero_extend(name##_cache, num)
# define SHOW_SBITS(name, gb, num)\ # define SHOW_SBITS(name, gb, num)\
NEG_SSR32((name##_cache)<<(32-(num)), num) sign_extend(name##_cache, num)
# else # else
# define SHOW_UBITS(name, gb, num)\ # define SHOW_UBITS(name, gb, num)\
NEG_USR32(name##_cache, num) NEG_USR32(name##_cache, num)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment