[vlc-commits] [Git][videolan/vlc][master] swscale: fix compilation on big endian machines

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Aug 25 05:43:23 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
b4f2cae9 by Marvin Scholz at 2023-08-25T05:19:56+00:00
swscale: fix compilation on big endian machines

Fix regression from c1769ceb44277529f49b4fd7db8fb5fffccac611 as
reported on IRC by LocutusOfBorg.

- - - - -


1 changed file:

- modules/video_chroma/swscale.c


Changes:

=====================================
modules/video_chroma/swscale.c
=====================================
@@ -634,10 +634,10 @@ static void Convert( filter_t *p_filter, struct SwsContext *ctx,
             {
                 // we want ARGB in host endianess from RGBA in byte order
 #ifdef WORDS_BIGENDIAN
-                dstp[0] = srcpal->palette[i][3];
-                dstp[1] = srcpal->palette[i][0];
-                dstp[2] = srcpal->palette[i][1];
-                dstp[3] = srcpal->palette[i][2];
+                dstp[0] = p_palette->palette[i][3];
+                dstp[1] = p_palette->palette[i][0];
+                dstp[2] = p_palette->palette[i][1];
+                dstp[3] = p_palette->palette[i][2];
 #else
                 dstp[0] = p_palette->palette[i][2];
                 dstp[1] = p_palette->palette[i][1];



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b4f2cae9a2f859e0ecfefc64d535f8ecdd72766a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b4f2cae9a2f859e0ecfefc64d535f8ecdd72766a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list