Commit 46a6dd08 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz/vmr9: The source pitch is the width of the Y plane for planar 4:2:0 formats.

parent d4178020
...@@ -261,7 +261,11 @@ static HRESULT WINAPI VMR9_DoRenderSample(struct strmbase_renderer *iface, IMedi ...@@ -261,7 +261,11 @@ static HRESULT WINAPI VMR9_DoRenderSample(struct strmbase_renderer *iface, IMedi
width = bitmap_header->biWidth; width = bitmap_header->biWidth;
height = bitmap_header->biHeight; height = bitmap_header->biHeight;
depth = bitmap_header->biBitCount; depth = bitmap_header->biBitCount;
src_pitch = ((width * depth / 8) + 3) & ~3; if (bitmap_header->biCompression == mmioFOURCC('N','V','1','2')
|| bitmap_header->biCompression == mmioFOURCC('Y','V','1','2'))
src_pitch = width;
else /* packed YUV (UYVY or YUY2) or RGB */
src_pitch = ((width * depth / 8) + 3) & ~3;
info.rtStart = start_time; info.rtStart = start_time;
info.rtEnd = end_time; info.rtEnd = end_time;
......
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