Commit 486531ca authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

evr: Respect RGB format stride in GetCurrentImage.

parent df91b314
......@@ -1531,7 +1531,8 @@ static HRESULT WINAPI video_presenter_control_GetCurrentImage(IMFVideoDisplayCon
{
if (SUCCEEDED(hr = IDirect3DSurface9_LockRect(readback, &mapped_rect, NULL, D3DLOCK_READONLY)))
{
memcpy(*dib, mapped_rect.pBits, *dib_size);
hr = MFCopyImage(stride < 0 ? *dib + *dib_size + stride : *dib, stride,
mapped_rect.pBits, mapped_rect.Pitch, abs(stride), surface_desc.Height);
IDirect3DSurface9_UnlockRect(readback);
}
}
......
......@@ -3466,8 +3466,7 @@ static void test_presenter_orientation(const GUID *subtype)
SetRect(&rect, 0, 0, header.biWidth, header.biHeight);
diff = check_rgb32_data(L"rgb32frame-flip.bmp", data, header.biSizeImage, &rect);
todo_wine
ok(diff <= 3, "Unexpected %lu%% diff\n", diff);
ok(diff <= 5, "Unexpected %lu%% diff\n", diff);
CoTaskMemFree(data);
hr = IMFVideoPresenter_ProcessMessage(presenter, MFVP_MESSAGE_ENDSTREAMING, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment