From a00a09c470322875ff7db58e3376c30ff08b7793 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 31 May 2021 13:31:13 +0300 Subject: [PATCH] evr/presenter: Use correct sample size attribute value when setting output mixer type. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/evr/presenter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/evr/presenter.c b/dlls/evr/presenter.c index 414ba5bcaa0..e9890c9f6e4 100644 --- a/dlls/evr/presenter.c +++ b/dlls/evr/presenter.c @@ -334,7 +334,7 @@ static HRESULT video_presenter_configure_output_type(struct video_presenter *pre if (SUCCEEDED(hr)) hr = IMFMediaType_SetUINT32(media_type, &MF_MT_DEFAULT_STRIDE, stride); if (SUCCEEDED(hr)) - hr = IMFMediaType_SetUINT32(media_type, &MF_MT_SAMPLE_SIZE, stride); + hr = IMFMediaType_SetUINT32(media_type, &MF_MT_SAMPLE_SIZE, size); } return hr;