avfilter/vf_yadif: Treat mode as a field of flags
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 5 Sep 2013 18:53:12 +0000 (20:53 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 5 Sep 2013 18:53:12 +0000 (20:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_yadif.c

index 38b6606..abf8cd5 100644 (file)
@@ -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)); \