]> git.proxmox.com Git - qemu.git/commitdiff
vnc: JPEG should be disabled if the client don't set tight quality
authorCorentin Chary <corentincj@iksaif.net>
Wed, 7 Jul 2010 18:57:50 +0000 (20:57 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 26 Jul 2010 22:23:53 +0000 (17:23 -0500)
Disable JPEG compression by default and only enable it if the
VNC client has sent the requested quality.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc.c

diff --git a/vnc.c b/vnc.c
index ed0e09600087c696bac98d276ff90e4d3008dc48..9cf38d19db5cbd6ebfc3e606f14f8f01ae66dbf4 100644 (file)
--- a/vnc.c
+++ b/vnc.c
@@ -1644,7 +1644,7 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings)
     vs->features = 0;
     vs->vnc_encoding = 0;
     vs->tight_compression = 9;
-    vs->tight_quality = 9;
+    vs->tight_quality = -1; /* Lossless by default */
     vs->absolute = -1;
 
     /*