ffmpeg | branch: master | Paul B Mahol <[email protected]> | 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); } _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
