From 6ce43389431fac004d529015ccec40208f0d8493 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 4 Aug 2020 08:20:36 +0200 Subject: avcodec/cfhd: fix overflow in multiplication in LUT calculation --- libavcodec/cfhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index 36fdc840a6..611fae53d8 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -65,7 +65,7 @@ static av_cold int cfhd_init(AVCodecContext *avctx) } for (int i = 0; i < 256; i++) - s->lut[1][i] = i + ((768 * i * i * i) / (256 * 256 * 256)); + s->lut[1][i] = i + ((768LL * i * i * i) / (256 * 256 * 256)); return ff_cfhd_init_vlcs(s); } -- cgit v1.2.3