From 77f57b0592d9c5702db01f1e8acf772f6607c568 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Wed, 6 Sep 2023 08:43:01 +0200 Subject: [PATCH] xwd: replace VLC_CODEC_RGB15 with RGB555LE/BE This is the format depending on the host byte order. --- modules/codec/xwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/codec/xwd.c b/modules/codec/xwd.c index 88e748204f..680b80c40a 100644 --- a/modules/codec/xwd.c +++ b/modules/codec/xwd.c @@ -68,7 +68,8 @@ static int Decode (decoder_t *dec, block_t *block) break; case 15: if (ntohl(hdr->bits_per_pixel) == 16) - chroma = VLC_CODEC_RGB15; + chroma = ntohl(hdr->byte_order) == 0 /* LSBFirst */ ? + VLC_CODEC_RGB555LE : VLC_CODEC_RGB555BE; break; case 16: if (ntohl(hdr->bits_per_pixel) == 16)