Nikolay Sivov : mfplat: Fix scanline for bottom-up case.
Alexandre Julliard
julliard at winehq.org
Thu Mar 19 16:27:47 CDT 2020
Module: wine
Branch: master
Commit: 5adb32f8b3a31c8fe889ca546e6cb49614219c01
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5adb32f8b3a31c8fe889ca546e6cb49614219c01
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu Mar 19 15:07:39 2020 +0300
mfplat: Fix scanline for bottom-up case.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mfplat/buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mfplat/buffer.c b/dlls/mfplat/buffer.c
index 7206cf6d5a..7039f93f57 100644
--- a/dlls/mfplat/buffer.c
+++ b/dlls/mfplat/buffer.c
@@ -613,7 +613,7 @@ static HRESULT create_2d_buffer(DWORD width, DWORD height, DWORD fourcc, BOOL bo
object->_2d.width = width * bpp;
object->_2d.height = height;
object->_2d.pitch = bottom_up ? -pitch : pitch;
- object->_2d.scanline0 = bottom_up ? object->data + object->_2d.width * (object->_2d.height - 1) : object->data;
+ object->_2d.scanline0 = bottom_up ? object->data + pitch * (object->_2d.height - 1) : object->data;
*buffer = &object->IMFMediaBuffer_iface;
More information about the wine-cvs
mailing list