[Spice-commits] src/channel-display-mjpeg.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 16 09:29:10 UTC 2018

 src/channel-display-mjpeg.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 73d3864908291aadb90a90eb495e573493f393a2
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri Nov 2 09:38:12 2018 +0000

    channel-display-mjpeg: Fix encoding for big endian machines
    Make sure components are ordered in the same way in memory.
    This was tested with a virtual MIPS machine.
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Victor Toso <victortoso at redhat.com>

diff --git a/src/channel-display-mjpeg.c b/src/channel-display-mjpeg.c
index 83cd391..e79fd86 100644
--- a/src/channel-display-mjpeg.c
+++ b/src/channel-display-mjpeg.c
@@ -108,8 +108,12 @@ static gboolean mjpeg_decoder_decode_frame(gpointer video_decoder)
     // requires jpeg-turbo
     decoder->mjpeg_cinfo.out_color_space = JCS_EXT_BGRX;
+    decoder->mjpeg_cinfo.out_color_space = JCS_EXT_XRGB;
 #warning "You should consider building with libjpeg-turbo"
     decoder->mjpeg_cinfo.out_color_space = JCS_RGB;

More information about the Spice-commits mailing list