From 5490ceb4ed04d68c3edafffdf36821cea1ba1d40 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 13 Nov 2018 14:46:51 +0100 Subject: [PATCH] Fixed source format for freerdp_dsp_encode in rdpsnd_server_send_wave_pdu --- channels/rdpsnd/server/rdpsnd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/rdpsnd/server/rdpsnd_main.c b/channels/rdpsnd/server/rdpsnd_main.c index ccfcb23aa..53d4d5c32 100644 --- a/channels/rdpsnd/server/rdpsnd_main.c +++ b/channels/rdpsnd/server/rdpsnd_main.c @@ -512,7 +512,7 @@ static UINT rdpsnd_server_send_wave2_pdu(RdpsndServerContext* context, src = context->priv->out_buffer; length = context->priv->out_pending_frames * context->priv->src_bytes_per_frame; - if (!freerdp_dsp_encode(context->priv->dsp_context, format, src, length, s)) + if (!freerdp_dsp_encode(context->priv->dsp_context, context->src_format, src, length, s)) error = ERROR_INTERNAL_ERROR; else {