summaryrefslogtreecommitdiff
authorMichael Niedermayer <michaelni@gmx.at>2012-10-13 19:09:42 (GMT)
committer Michael Niedermayer <michaelni@gmx.at>2012-10-13 19:17:43 (GMT)
commit3689ec3d28d76b7a67a5d3838870dfd25cd2daad (patch)
treec2e419d641624f320dc3598604846e202d010aac
parentc0f0bec2f205e567fc0eef8a9bf59d585e14094c (diff)
downloadffmpeg-3689ec3d28d76b7a67a5d3838870dfd25cd2daad.zip
ffmpeg-3689ec3d28d76b7a67a5d3838870dfd25cd2daad.tar.gz
ffmpeg-3689ec3d28d76b7a67a5d3838870dfd25cd2daad.tar.bz2
pp: avoid overflow in w*h
Fixes CID700580 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat
-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 e1a3977..e97c916 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];