summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-08-04 08:20:36 +0200
committerPaul B Mahol <onemda@gmail.com>2020-08-04 08:22:51 +0200
commit6ce43389431fac004d529015ccec40208f0d8493 (patch)
tree3d21ea8625c66a5239100c047b1c0f85edf2b794
parent9c0beaf0d3bb72f6e83b3b155a598a9ec28c8468 (diff)
avcodec/cfhd: fix overflow in multiplication in LUT calculation
-rw-r--r--libavcodec/cfhd.c2
1 files changed, 1 insertions, 1 deletions
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);
}