Commit 3689ec3d authored by Michael Niedermayer's avatar Michael Niedermayer

pp: avoid overflow in w*h

Fixes CID700580
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c0f0bec2
......@@ -3225,7 +3225,7 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
c.frameNum++;
// first frame is fscked so we ignore it
if(c.frameNum == 1) yHistogram[0]= width*height/64*15/256;
if(c.frameNum == 1) yHistogram[0]= width*(uint64_t)height/64*15/256;
for(i=0; i<256; i++){
sum+= yHistogram[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment