mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
get_bits() outputs exactly as many bits as requested no need to mask them.
Originally committed as revision 13782 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f6ec220cb5
commit
6dfcdc00b3
@ -390,7 +390,7 @@ static int g726_decode_frame(AVCodecContext *avctx,
|
||||
}
|
||||
|
||||
while (get_bits_count(&gb) + c->code_size <= buf_size*8)
|
||||
*samples++ = g726_decode(&c->c, get_bits(&gb, c->code_size) & mask);
|
||||
*samples++ = g726_decode(&c->c, get_bits(&gb, c->code_size));
|
||||
|
||||
c->bits_left = buf_size*8 - get_bits_count(&gb);
|
||||
c->bit_buffer = get_bits(&gb, c->bits_left);
|
||||
|
Loading…
Reference in New Issue
Block a user