diff options
author | Måns Rullgård <mans@mansr.com> | 2010-02-22 02:28:24 +0300 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-02-22 02:28:24 +0300 |
commit | 39261cd8d992322ce8ad77ee76a63a683cca21b2 (patch) | |
tree | 3f3adf24203c723b0dd5f847b47e493069916110 /libavcodec | |
parent | 976d7bf71c2337dd354d75b4bbe3921db7575dee (diff) |
get/show_bits() can read up to MIN_CACHE_BITS bits
The limit for get/show_bits_long() to use get/show_bits() directly
should be MIN_CACHE_BITS, not 17.
Originally committed as revision 21951 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/get_bits.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index 7c4ee4386c..c325778d67 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -422,7 +422,7 @@ static inline void skip_bits1(GetBitContext *s){ * reads 0-32 bits. */ static inline unsigned int get_bits_long(GetBitContext *s, int n){ - if(n<=17) return get_bits(s, n); + if(n<=MIN_CACHE_BITS) return get_bits(s, n); else{ #ifdef ALT_BITSTREAM_READER_LE int ret= get_bits(s, 16); @@ -445,7 +445,7 @@ static inline int get_sbits_long(GetBitContext *s, int n) { * shows 0-32 bits. */ static inline unsigned int show_bits_long(GetBitContext *s, int n){ - if(n<=17) return show_bits(s, n); + if(n<=MIN_CACHE_BITS) return show_bits(s, n); else{ GetBitContext gb= *s; return get_bits_long(&gb, n); |