summaryrefslogtreecommitdiff
path: root/libavcodec/tta.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-11-23 13:02:53 +0100
committerDiego Biurrun <diego@biurrun.de>2016-11-25 21:42:33 +0100
commit4adbb44ad154cec05e87de60bb827a13c0fe87df (patch)
treefc546652ad81c8258b3942df7c16147570a796e5 /libavcodec/tta.c
parentdc4b62502876c0ebeeba317233cd1348c5b0b2b7 (diff)
tta: avoid undefined shifts
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r--libavcodec/tta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 2ac825554e..5532580e02 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -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;
}