Fixes CID700580 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Showing the changes to libpostproc (1 of 1 file). Show all
Unified · Split
| @@ -3225,7 +3225,7 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[ · 3224 unmodified lines | |||
| 3225 | 3225 | ||
| 3226 | c.frameNum++; | 3226 | c.frameNum++; |
| 3227 | // first frame is fscked so we ignore it | 3227 | // first frame is fscked so we ignore it |
| 3228 | if(c.frameNum == 1) yHistogram[0]= width*height/64*15/256; | 3228 | if(c.frameNum == 1) yHistogram[0]= width*(uint64_t)height/64*15/256; |
| 3229 | 3229 | ||
| 3230 | for(i=0; i<256; i++){ | 3230 | for(i=0; i<256; i++){ |
| 3231 | sum+= yHistogram[i]; | 3231 | sum+= yHistogram[i]; |