Commit 7b9dcb2a authored by fenrir's avatar fenrir

Added missing const to get_bits_count().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21419 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 25cb6c5b
...@@ -202,7 +202,7 @@ for examples see get_bits, show_bits, skip_bits, get_vlc ...@@ -202,7 +202,7 @@ for examples see get_bits, show_bits, skip_bits, get_vlc
# define GET_CACHE(name, gb)\ # define GET_CACHE(name, gb)\
((uint32_t)name##_cache) ((uint32_t)name##_cache)
static inline int get_bits_count(GetBitContext *s){ static inline int get_bits_count(const GetBitContext *s){
return s->index; return s->index;
} }
...@@ -256,7 +256,7 @@ static inline void skip_bits_long(GetBitContext *s, int n){ ...@@ -256,7 +256,7 @@ static inline void skip_bits_long(GetBitContext *s, int n){
# define GET_CACHE(name, gb)\ # define GET_CACHE(name, gb)\
((uint32_t)name##_cache) ((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; 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){ ...@@ -331,7 +331,7 @@ static inline void skip_bits_long(GetBitContext *s, int n){
# define GET_CACHE(name, gb)\ # define GET_CACHE(name, gb)\
(name##_cache0) (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; return ((uint8_t*)s->buffer_ptr - s->buffer)*8 - 32 + s->bit_count;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment