vnc: prioritize ZRLE compression over ZLIB
commit557ba0e57200014bd4f453f6516f02b61bdfc782
authorCameron Esfahani <dirty@apple.com>
Tue, 21 Jan 2020 05:00:52 +0000 (20 21:00 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 21 Jan 2020 06:29:03 +0000 (21 07:29 +0100)
treede3705821464e65fbef38cb3b6abc9b2ab502508
parent0780ec7be82dd4781e9fd216b5d99a125882ff5a
vnc: prioritize ZRLE compression over ZLIB

In my investigation, ZRLE always compresses better than ZLIB so
prioritize ZRLE over ZLIB, even if the client hints that ZLIB is
preferred.

zlib buffer is always reset in zrle_compress_data(), so using offset to
calculate next_out and avail_out is useless.

Signed-off-by: Cameron Esfahani <dirty@apple.com>
Message-Id: <b5d129895d08a90d0a2a6183b95875bacfa998b8.1579582674.git.dirty@apple.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc-enc-zrle.c
ui/vnc.c