Mercurial > libavcodec.hg
changeset 4005:3ccdff1e5221 libavcodec
fix SHOW_SBITS for ALT_BITSTREAM_READER_LE, patch by Gregory Montoir %cyx A users P sourceforge P net%
author | bcoudurier |
---|---|
date | Thu, 12 Oct 2006 11:54:24 +0000 |
parents | f7e99d20ef62 |
children | 986d6651a452 |
files | bitstream.h |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitstream.h Thu Oct 12 11:51:34 2006 +0000 +++ b/bitstream.h Thu Oct 12 11:54:24 2006 +0000 @@ -460,13 +460,16 @@ # 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)