mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-16 05:41:08 +08:00
tta: avoid undefined shifts
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:

committed by
Diego Biurrun

parent
dc4b625028
commit
4adbb44ad1
@@ -360,7 +360,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
|
||||
}
|
||||
|
||||
if (k) {
|
||||
if (k > MIN_CACHE_BITS) {
|
||||
if (k >= 32 || unary > INT32_MAX >> k) {
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
goto error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user