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:
parent
46a6dd0824
commit
c4f92087af
|
@ -279,7 +279,7 @@ static HRESULT WINAPI VMR9_DoRenderSample(struct strmbase_renderer *iface, IMedi
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (height > 0)
|
if (height > 0 && bitmap_header->biCompression == BI_RGB)
|
||||||
{
|
{
|
||||||
BYTE *dst = (BYTE *)locked_rect.pBits + (height * locked_rect.Pitch);
|
BYTE *dst = (BYTE *)locked_rect.pBits + (height * locked_rect.Pitch);
|
||||||
const BYTE *src = data;
|
const BYTE *src = data;
|
||||||
|
@ -298,6 +298,8 @@ static HRESULT WINAPI VMR9_DoRenderSample(struct strmbase_renderer *iface, IMedi
|
||||||
BYTE *dst = locked_rect.pBits;
|
BYTE *dst = locked_rect.pBits;
|
||||||
const BYTE *src = data;
|
const BYTE *src = data;
|
||||||
|
|
||||||
|
height = abs(height);
|
||||||
|
|
||||||
TRACE("Source pitch %u does not match dest pitch %u; copying manually.\n",
|
TRACE("Source pitch %u does not match dest pitch %u; copying manually.\n",
|
||||||
src_pitch, locked_rect.Pitch);
|
src_pitch, locked_rect.Pitch);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue