yadif: Fix CHECK macro for YUY2 format

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/1943>
This commit is contained in:
Vivia Nikolaidou 2022-03-12 17:13:48 +02:00 committed by Tim-Philipp Müller
parent d58aca531b
commit 7fac3c2c29

View 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)) { \