diff options
author | Gregory Montoir <cyx@users.sourceforge.net> | 2006-10-12 11:54:24 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-10-12 11:54:24 +0000 |
commit | 7da4d4cdeca48667378b96a451621fc9aa76664b (patch) | |
tree | 89e49faec9c82d9722e0824126a06d6e01c6c378 | |
parent | cb690cadaf25c6574e58cd05be2881780c3b5bbb (diff) | |
download | ffmpeg-streaming-7da4d4cdeca48667378b96a451621fc9aa76664b.zip ffmpeg-streaming-7da4d4cdeca48667378b96a451621fc9aa76664b.tar.gz |
fix SHOW_SBITS for ALT_BITSTREAM_READER_LE, patch by Gregory Montoir %cyx A users P sourceforge P net%
Originally committed as revision 6671 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/bitstream.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h index d17c4b3..a00e117 100644 --- a/libavcodec/bitstream.h +++ b/libavcodec/bitstream.h @@ -460,13 +460,16 @@ static inline int unaligned32_le(const void *v) # ifdef ALT_BITSTREAM_READER_LE # define SHOW_UBITS(name, gb, num)\ ((name##_cache) & (NEG_USR32(0xffffffff,num))) + +# define SHOW_SBITS(name, gb, num)\ + NEG_SSR32((name##_cache)<<(32-(num)), num) # else # define SHOW_UBITS(name, gb, num)\ NEG_USR32(name##_cache, num) -# endif # define SHOW_SBITS(name, gb, num)\ NEG_SSR32(name##_cache, num) +# endif # define GET_CACHE(name, gb)\ ((uint32_t)name##_cache) |