Commit c4f92087 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz/vmr9: Invert only RGB video.

parent 46a6dd08
...@@ -279,7 +279,7 @@ static HRESULT WINAPI VMR9_DoRenderSample(struct strmbase_renderer *iface, IMedi ...@@ -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 ...@@ -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);
......
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