summaryrefslogtreecommitdiff
path: root/libpostproc/postprocess.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-31 01:40:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-31 01:40:12 +0200
commit6f51674c91cfcae0c0fdebf23d9cb9a3e294f09b (patch)
tree5c78c74ba8748eb0bc1d2709eabbd145c2df0d4a /libpostproc/postprocess.c
parentebe919cce2f46eedeb54948a3e49fa33f68bfbb0 (diff)
downloadffmpeg-6f51674c91cfcae0c0fdebf23d9cb9a3e294f09b.tar.gz
postproc: Avoid floats in maxClipped computation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc/postprocess.c')
-rw-r--r--libpostproc/postprocess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index acce0f273b..92cc4367d0 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -681,7 +681,7 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
ppMode->minAllowedY= 16;
ppMode->baseDcDiff= 256/8;
ppMode->flatnessThreshold= 56-16-1;
- ppMode->maxClippedThreshold= 0.01;
+ ppMode->maxClippedThreshold= (AVRational){1,100};
ppMode->error=0;
memset(temp, 0, GET_MODE_BUFFER_SIZE);