diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-18 14:09:20 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-18 14:43:43 +0200 |
commit | 44dabf1f422b9d3be470be8ead8f15c802939f7f (patch) | |
tree | 4b30754c815638b76b5d02ee40b4dd3c8724e786 /libpostproc | |
parent | 9f9ebe631dc1162c89115c9cf408a348dd3e46aa (diff) | |
download | ffmpeg-44dabf1f422b9d3be470be8ead8f15c802939f7f.tar.gz |
postproc: simplify forwarding return codes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libpostproc')
-rw-r--r-- | libpostproc/postprocess.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 3396f56eb7..691c9bf9f0 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -278,10 +278,7 @@ static inline int isVertMinMaxOk_C(const uint8_t src[], int stride, int QP) static inline int horizClassify_C(const uint8_t src[], int stride, const PPContext *c) { if( isHorizDC_C(src, stride, c) ){ - if( isHorizMinMaxOk_C(src, stride, c->QP) ) - return 1; - else - return 0; + return isHorizMinMaxOk_C(src, stride, c->QP); }else{ return 2; } @@ -290,10 +287,7 @@ static inline int horizClassify_C(const uint8_t src[], int stride, const PPConte static inline int vertClassify_C(const uint8_t src[], int stride, const PPContext *c) { if( isVertDC_C(src, stride, c) ){ - if( isVertMinMaxOk_C(src, stride, c->QP) ) - return 1; - else - return 0; + return isVertMinMaxOk_C(src, stride, c->QP); }else{ return 2; } |