aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-13 21:09:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-25 21:19:56 +0200
commitde4606a5b798f8905ab1a3e07f0375db34f5e69e (patch)
tree1416ad6066a759d0e3e4b529a48141a4f2af0fe0
parent93a0dd8358eed390e344219834975d2732c819f2 (diff)
downloadffmpeg-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.c2
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];