From b4355c0308981edc385494f690f2a8bf2f014aee Mon Sep 17 00:00:00 2001 From: David Fort Date: Tue, 16 May 2023 10:33:47 +0200 Subject: [PATCH] [codecs] fix freerdp_bitmap_planar_context_new call freerdp_bitmap_planar_context_new() expects flags as first argument not a BOOL, even if giving FALSE ends with the same result, it makes it more clear. --- libfreerdp/core/codecs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/codecs.c b/libfreerdp/core/codecs.c index 641977a4f..941a5d913 100644 --- a/libfreerdp/core/codecs.c +++ b/libfreerdp/core/codecs.c @@ -110,7 +110,7 @@ BOOL freerdp_client_codecs_prepare(rdpCodecs* codecs, UINT32 flags, UINT32 width if ((flags & FREERDP_CODEC_PLANAR)) { - if (!(codecs->planar = freerdp_bitmap_planar_context_new(FALSE, 64, 64))) + if (!(codecs->planar = freerdp_bitmap_planar_context_new(0, 64, 64))) { WLog_ERR(TAG, "Failed to create planar bitmap codec context"); return FALSE;