summaryrefslogtreecommitdiffstats
path: root/libxrdp
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2016-12-10 02:00:16 -0500
committerspeidy <speidy@gmail.com>2016-12-10 02:03:20 -0500
commit4f04801b11d6e712e97fa50941af8f8b0cdc7f59 (patch)
tree02cdd0485000c8db0394906b1a99f209d8f98d63 /libxrdp
parent42272c0f1891264af718e8f0a02ebc883f248ed8 (diff)
downloadxrdp-proprietary-4f04801b11d6e712e97fa50941af8f8b0cdc7f59.tar.gz
xrdp-proprietary-4f04801b11d6e712e97fa50941af8f8b0cdc7f59.zip
o caps: advertise remotefx codec capsets only when supported (RFX mode,
proxy mode) o xrdp_encoder: do not initialze encoder context for RFX when rfxcodec is not supported
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/xrdp_caps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libxrdp/xrdp_caps.c b/libxrdp/xrdp_caps.c
index 8d5250d5..a7d1ae1a 100644
--- a/libxrdp/xrdp_caps.c
+++ b/libxrdp/xrdp_caps.c
@@ -831,12 +831,14 @@ xrdp_caps_send_demand_active(struct xrdp_rdp *self)
out_uint8(s, 0x01); /* fAllowDynamicFidelity */
out_uint8(s, 0x01); /* fAllowSubsampling */
out_uint8(s, 0x03); /* colorLossLevel */
+#if defined(XRDP_RFXCODEC) || defined(XRDP_NEUTRINORDP)
/* remotefx */
codec_caps_count++;
out_uint8a(s, XR_CODEC_GUID_REMOTEFX, 16);
out_uint8(s, 0); /* codec id, client sets */
out_uint16_le(s, 256);
out_uint8s(s, 256);
+#endif
/* jpeg */
codec_caps_count++;
out_uint8a(s, XR_CODEC_GUID_JPEG, 16);