Commit 3d645ae4 authored by michael's avatar michael

get_bits() outputs exactly as many bits as requested no need to mask them.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13782 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a0fd6154
......@@ -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);
......
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