Commit 217dcdcb authored by kostya's avatar kostya

Correct reading bits in MPC SV8 base codes (when we have to read 0 or >16 bits).



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19182 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7abb966d
......@@ -44,7 +44,8 @@ static const int quant_offsets[6] = { MPC8_Q5_OFFSET, MPC8_Q6_OFFSET, MPC8_Q7_OF
static inline int mpc8_dec_base(GetBitContext *gb, int k, int n)
{
int code = get_bits(gb, mpc8_cnk_len[k-1][n-1] - 1);
int len = mpc8_cnk_len[k-1][n-1] - 1;
int code = len ? get_bits_long(gb, len) : 0;
if (code >= mpc8_cnk_lost[k-1][n-1])
code = ((code << 1) | get_bits1(gb)) - mpc8_cnk_lost[k-1][n-1];
......
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