avcodec/cfhd: fix overflow in multiplication in LUT calculation

pull/345/head^2
Paul B Mahol 5 years ago
parent 9c0beaf0d3
commit 6ce4338943
  1. 2
      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);
}

Loading…
Cancel
Save