diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-20 11:45:37 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-20 11:45:37 +0200 |
commit | ccbb922d5ae5757343df64c4184ef3927e680bf9 (patch) | |
tree | 579dc4018c879ff9c9eb0ffff8d1bf43b472a6cf /client/display_channel.cpp | |
parent | 2e9604d00d655f276f22b9ad1cce4fb631ac06a8 (diff) | |
download | spice-ccbb922d5ae5757343df64c4184ef3927e680bf9.tar.gz spice-ccbb922d5ae5757343df64c4184ef3927e680bf9.tar.xz spice-ccbb922d5ae5757343df64c4184ef3927e680bf9.zip |
Swap red and blue when decoding 0.4 mjpeg streams
There was an error in how this was encoded in 0.4, which we need
to handle. There is still some issues with the old streams as
the luminocity handling in 0.4 was not correct.
Diffstat (limited to 'client/display_channel.cpp')
-rw-r--r-- | client/display_channel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/display_channel.cpp b/client/display_channel.cpp index 4f89e066..c371f4a5 100644 --- a/client/display_channel.cpp +++ b/client/display_channel.cpp @@ -290,7 +290,7 @@ VideoStream::VideoStream(RedClient& client, Canvas& canvas, DisplayChannel& chan _pixmap.width = src_width; _pixmap.height = src_height; - _mjpeg_decoder = new MJpegDecoder(stream_width, stream_height, _stride, _uncompressed_data); + _mjpeg_decoder = new MJpegDecoder(stream_width, stream_height, _stride, _uncompressed_data, channel.get_peer_major() == 1); #ifdef WIN32 SetViewportOrgEx(_dc, 0, stream_height - src_height, NULL); |