Commit 1304bf7f authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

evr: Fix YUY2 image copy in evr_copy_sample_buffer().

parent d950e1b6
......@@ -388,8 +388,8 @@ static HRESULT evr_copy_sample_buffer(struct evr *filter, const GUID *subtype, I
if (IsEqualGUID(subtype, &MFVideoFormat_YUY2))
{
width = (3 * width + 3) & ~3;
MFCopyImage(locked_rect.pBits, locked_rect.Pitch, src, src_stride, width, lines);
width = (width + 1) & ~1;
MFCopyImage(locked_rect.pBits, locked_rect.Pitch, src, src_stride, width * 2, lines);
}
else if (IsEqualGUID(subtype, &MFVideoFormat_NV12))
{
......
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