aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_yadif.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-05 20:53:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-05 20:53:12 +0200
commit59b9ecc92a6209ac4f2d9844f3c1b9fec8f193e2 (patch)
tree07ca58223cf02cce77e7761969cffff61ba4519a /libavfilter/vf_yadif.c
parent4ff5b2683cc8458a9de146b07254c778910fa088 (diff)
downloadffmpeg-59b9ecc92a6209ac4f2d9844f3c1b9fec8f193e2.tar.gz
avfilter/vf_yadif: Treat mode as a field of flags
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_yadif.c')
-rw-r--r--libavfilter/vf_yadif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index 38b6606a6c..abf8cd5fe1 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -66,7 +66,7 @@ typedef struct ThreadData {
CHECK( 1) CHECK( 2) }} }} \
}\
\
- if (mode < 2) { \
+ if (!(mode&2)) { \
int b = (prev2[2 * mrefs] + next2[2 * mrefs])>>1; \
int f = (prev2[2 * prefs] + next2[2 * prefs])>>1; \
int max = FFMAX3(d - e, d - c, FFMIN(b - c, f - e)); \