quartz/vmr9: Invert only RGB video.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-06-19 19:50:15 -05:00 committed by Alexandre Julliard
parent 46a6dd0824
commit c4f92087af
1 changed files with 3 additions and 1 deletions

View File

@ -279,7 +279,7 @@ static HRESULT WINAPI VMR9_DoRenderSample(struct strmbase_renderer *iface, IMedi
return hr;
}
if (height > 0)
if (height > 0 && bitmap_header->biCompression == BI_RGB)
{
BYTE *dst = (BYTE *)locked_rect.pBits + (height * locked_rect.Pitch);
const BYTE *src = data;
@ -298,6 +298,8 @@ static HRESULT WINAPI VMR9_DoRenderSample(struct strmbase_renderer *iface, IMedi
BYTE *dst = locked_rect.pBits;
const BYTE *src = data;
height = abs(height);
TRACE("Source pitch %u does not match dest pitch %u; copying manually.\n",
src_pitch, locked_rect.Pitch);