aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2010-01-24 16:22:09 +0000
committerLaurent Aimar <fenrir@videolan.org>2010-01-24 16:22:09 +0000
commit8880c8bcc3e430cdaa5a9af782ce3b04a8a377ea (patch)
tree927f0f378274ed216fd2c96ee5a9a8e6d873a2b6 /libavcodec
parentb2b7ab32aae6f3f5dd4d6908371b494febc1d2df (diff)
downloadffmpeg-8880c8bcc3e430cdaa5a9af782ce3b04a8a377ea.tar.gz
Added missing const to get_bits_count().
Originally committed as revision 21419 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/get_bits.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index df814d9135..d9ef8607f2 100644
--- a/libavcodec/get_bits.h
+++ b/libavcodec/get_bits.h
@@ -202,7 +202,7 @@ for examples see get_bits, show_bits, skip_bits, get_vlc
# 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(GetBitContext *s, int n){
# 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(GetBitContext *s, int n){
# 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;
}