From 17dfd6eb8626ccb7fe01848e5fcbdebdda8cab39 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 2 Jul 2024 16:04:30 +0200 Subject: [PATCH] vc_copylineABGRtoRGB: fixed wrong shifts actually was for BGRA --- src/pixfmt_conv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pixfmt_conv.c b/src/pixfmt_conv.c index 82b7c63a5..3e954b533 100644 --- a/src/pixfmt_conv.c +++ b/src/pixfmt_conv.c @@ -785,9 +785,9 @@ void vc_copylineABGRtoRGB(unsigned char * __restrict dst, const unsigned char * UNUSED(gshift); UNUSED(bshift); enum { - SRC_RSHIFT = 16, - SRC_GSHIFT = 8, - SRC_BSHIFT = 0, + SRC_RSHIFT = 24, + SRC_GSHIFT = 16, + SRC_BSHIFT = 8, }; #ifdef __SSSE3__ __m128i shuf = _mm_setr_epi8(3, 2, 1, 7, 6, 5, 11, 10, 9, 15, 14, 13, 0xff, 0xff, 0xff, 0xff);