[FFmpeg-cvslog] avfilter/vf_yadif: Treat mode as a field of flags

Michael Niedermayer git at videolan.org
Thu Sep 5 21:07:56 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep  5 20:53:12 2013 +0200| [59b9ecc92a6209ac4f2d9844f3c1b9fec8f193e2] | committer: Michael Niedermayer

avfilter/vf_yadif: Treat mode as a field of flags

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59b9ecc92a6209ac4f2d9844f3c1b9fec8f193e2
---

 libavfilter/vf_yadif.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)); \



More information about the ffmpeg-cvslog mailing list