diff options
author | Jai Luthra <me@jailuthra.in> | 2020-02-07 23:16:12 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-02-08 20:20:43 +0300 |
commit | 4566cfed9c13ee509efb3cc9531ca8965e50c13d (patch) | |
tree | 3e0d95762b6b22c1833500be97b508ddfe460652 /libavcodec/mlpdec.c | |
parent | cbd5a4536c0339fa3bdafa63e253d70bebb5e64a (diff) |
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>
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index 22a6efd63d..1a2c0f29ac 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -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; |