mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
pp: avoid overflow in w*h
Fixes CID700580 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c0f0bec2f2
commit
3689ec3d28
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue