[Ffmpeg-cvslog] r6671 - trunk/libavcodec/bitstream.h

bcoudurier subversion
Thu Oct 12 13:54:24 CEST 2006


Author: bcoudurier
Date: Thu Oct 12 13:54:24 2006
New Revision: 6671

Modified:
   trunk/libavcodec/bitstream.h

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

Modified: trunk/libavcodec/bitstream.h
==============================================================================
--- trunk/libavcodec/bitstream.h	(original)
+++ trunk/libavcodec/bitstream.h	Thu Oct 12 13:54:24 2006
@@ -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)




More information about the ffmpeg-cvslog mailing list