From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53230 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOlqu-0001pD-Iu for qemu-devel@nongnu.org; Wed, 16 Jun 2010 02:11:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOlqt-00030S-HR for qemu-devel@nongnu.org; Wed, 16 Jun 2010 02:11:56 -0400 Received: from iksaif.net ([88.191.73.63]:35924) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOlqt-000305-DB for qemu-devel@nongnu.org; Wed, 16 Jun 2010 02:11:55 -0400 From: Corentin Chary Date: Wed, 16 Jun 2010 09:11:59 +0200 Message-Id: <1276672333-14831-3-git-send-email-corentincj@iksaif.net> In-Reply-To: <1276672333-14831-1-git-send-email-corentincj@iksaif.net> References: <1276672333-14831-1-git-send-email-corentincj@iksaif.net> Subject: [Qemu-devel] [PATCH 02/16] vnc: JPEG should be disabled if the client don't set tight quality List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Corentin Chary , Anthony Liguori , Alexander Graf Disable JPEG compression by default and only enable it if the VNC client has sent the requested quality. Signed-off-by: Corentin Chary --- vnc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vnc.c b/vnc.c index ed0e096..9cf38d1 100644 --- 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; /* -- 1.7.1