Mercurial > libavcodec.hg
changeset 3630:8e284a5ec5e1 libavcodec
2nd try for a skip_bits_long() for the A32 reader
author | michael |
---|---|
date | Sat, 26 Aug 2006 11:06:33 +0000 |
parents | 2ab6ec6259b1 |
children | 40f753fc46a4 |
files | bitstream.h |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/bitstream.h Sat Aug 26 10:26:14 2006 +0000 +++ b/bitstream.h Sat Aug 26 11:06:33 2006 +0000 @@ -582,14 +582,9 @@ 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) }