summaryrefslogtreecommitdiff
path: root/server/mjpeg_encoder.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-07-29 18:52:15 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-08-02 11:13:49 +0200
commit3582adb989cdb6e1e75bf9341ffcebf35e58b737 (patch)
tree46eb50f0cff4b7c36e92f176a5582dc46240f9d8 /server/mjpeg_encoder.c
parent39867cb4df4bdc929144953898c60b479f3901cc (diff)
mjpeg: add missing SPICE_BITMAP_FMT_RGBA
I forgot to handle SPICE_BITMAP_FMT_RGBA when mapping from spice image formats to libjpeg-turbo colorspaces.
Diffstat (limited to 'server/mjpeg_encoder.c')
-rw-r--r--server/mjpeg_encoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/mjpeg_encoder.c b/server/mjpeg_encoder.c
index ea2e15f..4b1023a 100644
--- a/server/mjpeg_encoder.c
+++ b/server/mjpeg_encoder.c
@@ -207,6 +207,7 @@ int mjpeg_encoder_start_frame(MJpegEncoder *encoder, SpiceBitmapFmt format,
encoder->cinfo.input_components = 3;
switch (format) {
case SPICE_BITMAP_FMT_32BIT:
+ case SPICE_BITMAP_FMT_RGBA:
encoder->bytes_per_pixel = 4;
#ifdef JCS_EXTENSIONS
encoder->cinfo.in_color_space = JCS_EXT_BGRX;