diff options
author | speidy <speidy@gmail.com> | 2016-12-10 02:14:50 -0500 |
---|---|---|
committer | speidy <speidy@gmail.com> | 2016-12-10 02:14:50 -0500 |
commit | 1ef5c2412c07b108bcf5d2984d576578ffb83ef8 (patch) | |
tree | 6597121c16eeab9d3ad8032ffc794b4df41f31ce /libxrdp/xrdp_caps.c | |
parent | bb8b85759d8bf5dc0c9df41fa63bf5a4bc5a889e (diff) | |
download | xrdp-proprietary-1ef5c2412c07b108bcf5d2984d576578ffb83ef8.tar.gz xrdp-proprietary-1ef5c2412c07b108bcf5d2984d576578ffb83ef8.zip |
xrdp_caps: fix jpeg codec properties
Diffstat (limited to 'libxrdp/xrdp_caps.c')
-rw-r--r-- | libxrdp/xrdp_caps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c index 9c50c0b4..9d3352f2 100644 --- a/libxrdp/xrdp_caps.c +++ b/libxrdp/xrdp_caps.c @@ -862,8 +862,8 @@ xrdp_caps_send_demand_active(struct xrdp_rdp *self) codec_caps_count++; out_uint8a(s, XR_CODEC_GUID_JPEG, 16); out_uint8(s, 0); /* codec id, client sets */ - out_uint16_le(s, 4); /* codecPropertiesLength */ - out_uint32_le(s, 0); /* reserved */ + out_uint16_le(s, 1); /* codecPropertiesLength */ + out_uint8(s, 75); /* jpeg compression ratio */ /* calculate and set size and count */ codec_caps_size = (int)(s->p - codec_caps_size_ptr); codec_caps_size += 2; /* 2 bytes for RDP_CAPSET_BMPCODECS above */ |