From dbe66c2ecf7394ccda9b0352a0f170fa7e2e8310 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 31 Mar 2018 14:29:38 +0000 Subject: [PATCH] cut&paste gone wrong: changing the lossless threshold would affect the subsampling threshold! git-svn-id: https://xpra.org/svn/Xpra/trunk@18927 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/codecs/webp/encode.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xpra/codecs/webp/encode.pyx b/src/xpra/codecs/webp/encode.pyx index feedfbf86d..732e20fa4d 100644 --- a/src/xpra/codecs/webp/encode.pyx +++ b/src/xpra/codecs/webp/encode.pyx @@ -17,7 +17,7 @@ from xpra.util import envbool, envint cdef int LOG_CONFIG = envbool("XPRA_WEBP_LOG_CONFIG", False) cdef int WEBP_THREADING = envbool("XPRA_WEBP_THREADING", True) cdef int LOSSLESS_THRESHOLD = envint("XPRA_WEBP_LOSSLESS_THRESHOLD", 75) -cdef int SUBSAMPLING_THRESHOLD = envint("XPRA_WEBP_LOSSLESS_THRESHOLD", 40) +cdef int SUBSAMPLING_THRESHOLD = envint("XPRA_WEBP_SUBSAMPLING_THRESHOLD", 40) assert SUBSAMPLING_THRESHOLD<=LOSSLESS_THRESHOLD, "lossless threshold must be higher than subsampling threshold" assert LOSSLESS_THRESHOLD>=0 and LOSSLESS_THRESHOLD<=100, "invalid lossless threshold: %i" % LOSSLESS_THRESHOLD