[FFmpeg-cvslog] r17736 - trunk/libavcodec/bitstream.h

reimar subversion
Mon Mar 2 20:42:32 CET 2009


Author: reimar
Date: Mon Mar  2 20:42:31 2009
New Revision: 17736

Log:
Simplify show_bits_long and copy the GetBitsContext around only once instead of twice.

Modified:
   trunk/libavcodec/bitstream.h

Modified: trunk/libavcodec/bitstream.h
==============================================================================
--- trunk/libavcodec/bitstream.h	Mon Mar  2 18:32:53 2009	(r17735)
+++ trunk/libavcodec/bitstream.h	Mon Mar  2 20:42:31 2009	(r17736)
@@ -713,9 +713,7 @@ static inline unsigned int show_bits_lon
     if(n<=17) return show_bits(s, n);
     else{
         GetBitContext gb= *s;
-        int ret= get_bits_long(s, n);
-        *s= gb;
-        return ret;
+        return get_bits_long(&gb, n);
     }
 }
 




More information about the ffmpeg-cvslog mailing list