From 619e5b6e44469edbb345c7fd6386fce9982bab04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 18 Jul 2010 15:08:48 +0200 Subject: [PATCH] videoscale: Fix linear scaling of UYVY scanlines Fixes bug #624656. --- gst/videoscale/vs_scanline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videoscale/vs_scanline.c b/gst/videoscale/vs_scanline.c index 2368989ad0..38bb44a094 100644 --- a/gst/videoscale/vs_scanline.c +++ b/gst/videoscale/vs_scanline.c @@ -603,7 +603,7 @@ vs_scanline_merge_linear_UYVY (uint8_t * dest, uint8_t * src1, int quads = (n + 1) / 2; uint32_t value = x >> 8; - if (value == 4) { + if (value == 0) { memcpy (dest, src1, quads * 4); } else { orc_merge_linear_u8 (dest, src1, src2, 256 - value, value, quads * 4);