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-13 21:17:43 +0200
commit3689ec3d28d76b7a67a5d3838870dfd25cd2daad (patch)
treec2e419d641624f320dc3598604846e202d010aac
parentc0f0bec2f205e567fc0eef8a9bf59d585e14094c (diff)
downloadffmpeg-3689ec3d28d76b7a67a5d3838870dfd25cd2daad.tar.gz
pp: avoid overflow in w*h
Fixes CID700580 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 e1a3977056..e97c91614d 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];