aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorGregory Montoir <cyx@users.sourceforge.net>2006-10-12 11:54:24 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-10-12 11:54:24 +0000
commit7da4d4cdeca48667378b96a451621fc9aa76664b (patch)
tree89e49faec9c82d9722e0824126a06d6e01c6c378 /libavcodec
parentcb690cadaf25c6574e58cd05be2881780c3b5bbb (diff)
downloadffmpeg-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
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/bitstream.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h
index d17c4b3e99..a00e117689 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)