[codec,yuv] Align width and height for AVC444 decoding to 32

- Windows seems to be aligning to 32 in current versions of RDP, which
  can be noticed in non-standard resolutions (that are not multiple of
  32 after aligning to 16).
- 16-byte alignment was initially introduced in commit 8adc2ba
This commit is contained in:
eduar-hte
2025-10-13 18:08:18 +00:00
parent 7d86a9259b
commit 387fa0201a

View File

@@ -479,7 +479,7 @@ static void CALLBACK yuv444_combine_work_callback(PTP_CALLBACK_INSTANCE instance
const RECTANGLE_16* rect = &param->rect;
WINPR_ASSERT(rect);
const UINT32 alignedWidth = yuv->width + ((yuv->width % 16 != 0) ? 16 - yuv->width % 16 : 0);
const UINT32 alignedWidth = yuv->width + ((yuv->width % 32 != 0) ? 32 - yuv->width % 32 : 0);
const UINT32 alignedHeight =
yuv->height + ((yuv->height % 16 != 0) ? 16 - yuv->height % 16 : 0);