[PATCH 4/4] quartz/vmr9: Fix source pitch for luma plane.

Anton Baskanov baskanov at gmail.com
Sun Aug 29 08:31:41 CDT 2021


Signed-off-by: Anton Baskanov <baskanov at gmail.com>
---
 dlls/quartz/vmr9.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 09160e53337..6eabd73d78c 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -285,7 +285,7 @@ static HRESULT vmr_render(struct strmbase_renderer *iface, IMediaSample *sample)
     depth = bitmap_header->biBitCount;
     if (bitmap_header->biCompression == mmioFOURCC('N','V','1','2')
             || bitmap_header->biCompression == mmioFOURCC('Y','V','1','2'))
-        src_pitch = width;
+        src_pitch = (width + 3) & ~3;
     else /* packed YUV (UYVY or YUY2) or RGB */
         src_pitch = ((width * depth / 8) + 3) & ~3;
 
-- 
2.25.1




More information about the wine-devel mailing list