mfplat: Fix scanline for bottom-up case.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1d7c5308c6
commit
5adb32f8b3
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue