diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-31 02:40:12 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-31 02:40:12 +0300 |
commit | 6f51674c91cfcae0c0fdebf23d9cb9a3e294f09b (patch) | |
tree | 5c78c74ba8748eb0bc1d2709eabbd145c2df0d4a /libpostproc/postprocess_template.c | |
parent | ebe919cce2f46eedeb54948a3e49fa33f68bfbb0 (diff) |
postproc: Avoid floats in maxClipped computation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc/postprocess_template.c')
-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 fc49e19337..c7ad3f0306 100644 --- a/libpostproc/postprocess_template.c +++ b/libpostproc/postprocess_template.c @@ -3383,7 +3383,7 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[ } /* We always get a completely black picture first. */ - maxClipped= (uint64_t)(sum * c.ppMode.maxClippedThreshold); + maxClipped= av_rescale(sum, c.ppMode.maxClippedThreshold.num, c.ppMode.maxClippedThreshold.den); clipped= sum; for(black=255; black>0; black--){ |