avcodec/mlpdec: use get_bits_long for huff lsbs

lsb bits may go beyond 25 bits, so to be safe use get_bits_long

Signed-off-by: Jai Luthra <me@jailuthra.in>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Jai Luthra 2020-02-08 01:46:12 +05:30 committed by Michael Niedermayer
parent cbd5a4536c
commit 4566cfed9c
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ static inline int read_huff_channels(MLPDecodeContext *m, GetBitContext *gbp,
return AVERROR_INVALIDDATA;
if (lsb_bits > 0)
result = (result << lsb_bits) + get_bits(gbp, lsb_bits);
result = (result << lsb_bits) + get_bits_long(gbp, lsb_bits);
result += cp->sign_huff_offset;
result *= 1 << quant_step_size;