[vlc-commits] Xwd: fix 32-bits RGB chroma

Rémi Denis-Courmont git at videolan.org
Thu Nov 7 22:24:23 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov  5 22:29:50 2013 +0200| [15cb452eed6c47d0151eb29bfd9bf83bc0975fd2] | committer: Rémi Denis-Courmont

Xwd: fix 32-bits RGB chroma

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15cb452eed6c47d0151eb29bfd9bf83bc0975fd2
---

 modules/codec/xwd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/xwd.c b/modules/codec/xwd.c
index 4de32a6..42e7d4b 100644
--- a/modules/codec/xwd.c
+++ b/modules/codec/xwd.c
@@ -112,7 +112,7 @@ static picture_t *Decode (decoder_t *dec, block_t **pp)
             break;
         case 32:
             if (ntohl(hdr->bits_per_pixel) == 32)
-                chroma = VLC_CODEC_RGBA;
+                chroma = VLC_CODEC_ARGB;
             break;
     }
     /* TODO: check image endianess, set RGB mask */



More information about the vlc-commits mailing list