Commit 28c895e2 authored by reimar's avatar reimar

Fix get_bits_long to work with ALT_BITSTREAM_READER_LE.

Gives the same result as get_bits_long_le in vorbis.c instead
of some wild big-/little-endian mixture.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6332 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fa59f3be
......@@ -725,8 +725,13 @@ static inline void skip_bits1(GetBitContext *s){
static inline unsigned int get_bits_long(GetBitContext *s, int n){
if(n<=17) return get_bits(s, n);
else{
#ifdef ALT_BITSTREAM_READER_LE
int ret= get_bits(s, 16);
return ret | (get_bits(s, n-16) << 16);
#else
int ret= get_bits(s, 16) << (n-16);
return ret | get_bits(s, n-16);
#endif
}
}
......
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