diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-05 20:53:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-05 20:53:12 +0200 |
commit | 59b9ecc92a6209ac4f2d9844f3c1b9fec8f193e2 (patch) | |
tree | 07ca58223cf02cce77e7761969cffff61ba4519a /libavfilter/vf_yadif.c | |
parent | 4ff5b2683cc8458a9de146b07254c778910fa088 (diff) | |
download | ffmpeg-streaming-59b9ecc92a6209ac4f2d9844f3c1b9fec8f193e2.zip ffmpeg-streaming-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index 38b6606..abf8cd5 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)); \ |