[FFmpeg-cvslog] avcodec/cfhd: fix overflow in multiplication in LUT calculation
Paul B Mahol
git at videolan.org
Tue Aug 4 09:26:00 EEST 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Aug 4 08:20:36 2020 +0200| [6ce43389431fac004d529015ccec40208f0d8493] | committer: Paul B Mahol
avcodec/cfhd: fix overflow in multiplication in LUT calculation
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6ce43389431fac004d529015ccec40208f0d8493
---
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);
}
More information about the ffmpeg-cvslog
mailing list