Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
metalefty committed Sep 8, 2023
1 parent 9699781 commit 498fb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libxrdp/xrdp_caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ xrdp_caps_process_codecs(struct xrdp_rdp *self, struct stream *s, int len)
LOG(LOG_LEVEL_INFO, "xrdp_caps_process_codecs: JPEG(%s), codec id [%d], properties len [%d]",
codec_guid_str, codec_id, codec_properties_length);
self->client_info.jpeg_codec_id = codec_id;
i1 = MIN(64, codec_properties_length);
i1 = MIN(siseof(self->client_info.jpeg_prop), (size_t) codec_properties_length);
g_memcpy(self->client_info.jpeg_prop, s->p, i1);
self->client_info.jpeg_prop_len = i1;
/* make sure that requested quality is between 0 to 100 */
Expand Down

0 comments on commit 498fb72

Please sign in to comment.