From 890d42fdfef3d61a5dfcfa731df75c0557ed107b Mon Sep 17 00:00:00 2001 From: Vladyslav Sosunovych Date: Wed, 20 Mar 2024 09:17:42 +0100 Subject: [PATCH 13/16] libswscale: fix yuv420p to p01xle color conversion bug --- libswscale/swscale_unscaled.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c index dc1d5f3593..73e7111d1f 100644 --- a/libswscale/swscale_unscaled.c +++ b/libswscale/swscale_unscaled.c @@ -339,7 +339,7 @@ static int planar8ToP01xleWrapper(SwsContext *c, const uint8_t *src[], const uint8_t *tsrc0 = src[0]; for (x = c->srcW; x > 0; x--) { t = *tsrc0++; - output_pixel(tdstY++, t | (t << 8)); + output_pixel(tdstY++, (t << 8)); } src[0] += srcStride[0]; dstY += dstStride[0] / 2; @@ -350,9 +350,9 @@ static int planar8ToP01xleWrapper(SwsContext *c, const uint8_t *src[], const uint8_t *tsrc2 = src[2]; for (x = c->srcW / 2; x > 0; x--) { t = *tsrc1++; - output_pixel(tdstUV++, t | (t << 8)); + output_pixel(tdstUV++, (t << 8)); t = *tsrc2++; - output_pixel(tdstUV++, t | (t << 8)); + output_pixel(tdstUV++, (t << 8)); } src[1] += srcStride[1]; src[2] += srcStride[2]; -- 2.39.5 (Apple Git-154)