Commit 7cd7d19e authored by Måns Rullgård's avatar Måns Rullgård

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

Originally committed as revision 21948 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 48960b8f
......@@ -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)
......
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