Zebediah Figura : quartz/vmr9: Invert only RGB video.
Alexandre Julliard
julliard at winehq.org
Mon Jun 22 15:55:57 CDT 2020
Module: wine
Branch: master
Commit: c4f92087af906e869253f1d184f414691155d3ab
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c4f92087af906e869253f1d184f414691155d3ab
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Fri Jun 19 19:50:15 2020 -0500
quartz/vmr9: Invert only RGB video.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/quartz/vmr9.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index bee5a10718..d4331d321d 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -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);
More information about the wine-cvs
mailing list