mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/cfhd: fix overflow in multiplication in LUT calculation
This commit is contained in:
parent
9c0beaf0d3
commit
6ce4338943
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user