Commit 8404adb1 authored by bcoudurier's avatar bcoudurier

fix SHOW_SBITS for ALT_BITSTREAM_READER_LE, patch by Gregory Montoir %cyx A...

fix SHOW_SBITS for ALT_BITSTREAM_READER_LE, patch by Gregory Montoir %cyx A users P sourceforge P net%

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6671 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 31991f9d
...@@ -460,13 +460,16 @@ static inline int unaligned32_le(const void *v) ...@@ -460,13 +460,16 @@ static inline int unaligned32_le(const void *v)
# 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))) ((name##_cache) & (NEG_USR32(0xffffffff,num)))
# define SHOW_SBITS(name, gb, num)\
NEG_SSR32((name##_cache)<<(32-(num)), 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)
# endif
# define SHOW_SBITS(name, gb, num)\ # define SHOW_SBITS(name, gb, num)\
NEG_SSR32(name##_cache, num) NEG_SSR32(name##_cache, num)
# endif
# define GET_CACHE(name, gb)\ # define GET_CACHE(name, gb)\
((uint32_t)name##_cache) ((uint32_t)name##_cache)
......
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