yadif: Fix CHECK macro for YUY2 format
authorVivia Nikolaidou <vivia@ahiru.eu>
Sat, 12 Mar 2022 15:13:48 +0000 (17:13 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 12 Mar 2022 17:18:47 +0000 (17:18 +0000)
Used to make comb artifacts for videotestsrc pattern=ball for YUY2
format only (not AYUV).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1938>

subprojects/gst-plugins-good/gst/deinterlace/yadif.c

index b224e87..d29c72f 100644 (file)
@@ -220,8 +220,8 @@ static void
         if (is_not_edge) {\
             int spatial_score = FFABS(stzero[x-colors2] - sbzero[x-colors2]) + FFABS(c-e) \
                               + FFABS(stzero[x+colors2] - sbzero[x+colors2]); \
-            CHECK(-1) CHECK(-2) }} }} \
-            CHECK( 1) CHECK( 2) }} }} \
+            CHECK(-1 * colors2) CHECK(-2 * colors2) }} }} \
+            CHECK(colors2) CHECK(2 * colors2) }} }} \
         }\
  \
         if (!(mode&2)) { \