1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

evr: Fix YUY2 image copy in evr_copy_sample_buffer().

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Eric Pouech 2024-03-06 16:02:21 +01:00 committed by Alexandre Julliard
parent d950e1b61f
commit 1304bf7fb9

View file

@ -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))
{