diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-08-26 11:06:33 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-08-26 11:06:33 +0000 |
commit | 1491e21cdba9797f627165dfc881ab847be7d101 (patch) | |
tree | 9fd7f04115c5fbdd781f014b2dfafb61a6230ec7 /libavcodec/bitstream.h | |
parent | 5a7bd28335d502d90c727f69a50e6f251c305e72 (diff) | |
download | ffmpeg-1491e21cdba9797f627165dfc881ab847be7d101.tar.gz |
2nd try for a skip_bits_long() for the A32 reader
Originally committed as revision 6094 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bitstream.h')
-rw-r--r-- | libavcodec/bitstream.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h index 4c789e4a6a..654f259463 100644 --- a/libavcodec/bitstream.h +++ b/libavcodec/bitstream.h @@ -582,14 +582,9 @@ static inline void skip_bits_long(GetBitContext *s, int n){ re_bit_count += n; re_buffer_ptr += s->bit_count>>5; re_bit_count &= 31; - if(re_bit_count<=0){ - re_bit_count += 32; - re_buffer_ptr--; - } - re_cache0= - re_cache1= 0; + re_cache0 = be2me_32( re_buffer_ptr[-1] ) << re_bit_count; + re_cache1 = 0; UPDATE_CACHE(re, s) - re_cache1= 0; CLOSE_READER(re, s) } |