diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 21:09:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-25 21:19:56 +0200 |
commit | de4606a5b798f8905ab1a3e07f0375db34f5e69e (patch) | |
tree | 1416ad6066a759d0e3e4b529a48141a4f2af0fe0 | |
parent | 93a0dd8358eed390e344219834975d2732c819f2 (diff) | |
download | ffmpeg-de4606a5b798f8905ab1a3e07f0375db34f5e69e.tar.gz |
pp: avoid overflow in w*h
Fixes CID700580
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 3689ec3d28d76b7a67a5d3838870dfd25cd2daad)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libpostproc/postprocess_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c index 4b8184c4f4..406af654f4 100644 --- a/libpostproc/postprocess_template.c +++ b/libpostproc/postprocess_template.c @@ -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]; |