From 01d24264d2805948691dcd8811c3f6150e13bd5e Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 15 Feb 2017 12:37:37 +0100 Subject: [PATCH] Using aligned RFX buffers. --- libfreerdp/codec/rfx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/codec/rfx.c b/libfreerdp/codec/rfx.c index c887846e9..a4a1ad8c7 100644 --- a/libfreerdp/codec/rfx.c +++ b/libfreerdp/codec/rfx.c @@ -167,7 +167,7 @@ static RFX_TILE* rfx_decoder_tile_new(void) if (!(tile = (RFX_TILE*) calloc(1, sizeof(RFX_TILE)))) return NULL; - if (!(tile->data = (BYTE*) malloc(4 * 64 * 64))) + if (!(tile->data = (BYTE*) _aligned_malloc(4 * 64 * 64, 16))) { free(tile); return NULL; @@ -182,7 +182,7 @@ static void rfx_decoder_tile_free(RFX_TILE* tile) if (tile) { if (tile->allocated) - free(tile->data); + _aligned_free(tile->data); free(tile); }