diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-04 03:49:10 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-04 03:50:46 +0200 |
commit | bb8b752553f88e6285e8e4c7e15853eed865dc28 (patch) | |
tree | 13a66180ed7b683aeaa3d2b6be38dee84bed35d5 /libpostproc/postprocess_template.c | |
parent | 17ad5fbb8af3ea3fad689064bc84ecfdfe52f0c2 (diff) | |
download | ffmpeg-bb8b752553f88e6285e8e4c7e15853eed865dc28.tar.gz |
postproc: use FFMIN/FFMAX where appropriate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc/postprocess_template.c')
-rw-r--r-- | libpostproc/postprocess_template.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c index 0761c5027a..10b91c3d34 100644 --- a/libpostproc/postprocess_template.c +++ b/libpostproc/postprocess_template.c @@ -1073,11 +1073,11 @@ static inline void RENAME(doVertDefFilter)(uint8_t src[], int stride, PPContext d*= FFSIGN(-middleEnergy); if(q>0){ - d= d<0 ? 0 : d; - d= d>q ? q : d; + d = FFMAX(d, 0); + d = FFMIN(d, q); }else{ - d= d>0 ? 0 : d; - d= d<q ? q : d; + d = FFMIN(d, 0); + d = FFMAX(d, q); } src[l4]-= d; |