[FFmpeg-cvslog] r21419 - trunk/libavcodec/get_bits.h

fenrir subversion
Sun Jan 24 17:22:10 CET 2010


Author: fenrir
Date: Sun Jan 24 17:22:09 2010
New Revision: 21419

Log:
Added missing const to get_bits_count().

Modified:
   trunk/libavcodec/get_bits.h

Modified: trunk/libavcodec/get_bits.h
==============================================================================
--- trunk/libavcodec/get_bits.h	Sun Jan 24 14:43:26 2010	(r21418)
+++ trunk/libavcodec/get_bits.h	Sun Jan 24 17:22:09 2010	(r21419)
@@ -202,7 +202,7 @@ for examples see get_bits, show_bits, sk
 #   define GET_CACHE(name, gb)\
         ((uint32_t)name##_cache)
 
-static inline int get_bits_count(GetBitContext *s){
+static inline int get_bits_count(const GetBitContext *s){
     return s->index;
 }
 
@@ -256,7 +256,7 @@ static inline void skip_bits_long(GetBit
 #   define GET_CACHE(name, gb)\
         ((uint32_t)name##_cache)
 
-static inline int get_bits_count(GetBitContext *s){
+static inline int get_bits_count(const GetBitContext *s){
     return (s->buffer_ptr - s->buffer)*8 - 16 + s->bit_count;
 }
 
@@ -331,7 +331,7 @@ static inline void skip_bits_long(GetBit
 #   define GET_CACHE(name, gb)\
         (name##_cache0)
 
-static inline int get_bits_count(GetBitContext *s){
+static inline int get_bits_count(const GetBitContext *s){
     return ((uint8_t*)s->buffer_ptr - s->buffer)*8 - 32 + s->bit_count;
 }
 



More information about the ffmpeg-cvslog mailing list