diff options
Diffstat (limited to 'common/rfb')
-rw-r--r-- | common/rfb/tightEncode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/rfb/tightEncode.h b/common/rfb/tightEncode.h index 0c6b364c..2e6d0d88 100644 --- a/common/rfb/tightEncode.h +++ b/common/rfb/tightEncode.h @@ -574,6 +574,8 @@ static void ENCODE_JPEG_RECT (rdr::OutStream *os, PIXEL_T *buf, jpeg_set_defaults(&cinfo); jpeg_set_quality(&cinfo, s_pjconf->jpegQuality, TRUE); + if(s_pjconf->jpegQuality >= 96) cinfo.dct_method = JDCT_ISLOW; + else cinfo.dct_method = JDCT_FASTEST; switch (s_pjconf->jpegSubSample) { case SUBSAMP_420: |