Mercurial > libavcodec.hg
changeset 10986:4289d95e5022 libavcodec
Added missing const to get_bits_count().
author | fenrir |
---|---|
date | Sun, 24 Jan 2010 16:22:09 +0000 |
parents | 007330d2f2b9 |
children | 85de0c8a19b7 |
files | get_bits.h |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/get_bits.h Sun Jan 24 13:43:26 2010 +0000 +++ b/get_bits.h Sun Jan 24 16:22:09 2010 +0000 @@ -202,7 +202,7 @@ # 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 @@ # 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 @@ # 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; }