ffmpeg | branch: master | Jai Luthra <m...@jailuthra.in> | Sat Feb 8 02:04:12 2020 +0530| [4566cfed9c13ee509efb3cc9531ca8965e50c13d] | committer: Michael Niedermayer
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 <m...@jailuthra.in> Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4566cfed9c13ee509efb3cc9531ca8965e50c13d --- libavcodec/mlpdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".