mfplat: Fix max buffer length for IMC2/IMC4 formats.

Signed-off-by: Derek Lesho <dlesho@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Derek Lesho 2021-06-07 19:40:15 +03:00 committed by Alexandre Julliard
parent b7c48c898c
commit 1eaf034efe
1 changed files with 2 additions and 0 deletions

View File

@ -1315,6 +1315,8 @@ static HRESULT create_2d_buffer(DWORD width, DWORD height, DWORD fourcc, BOOL bo
plane_size *= 2;
break;
case MAKEFOURCC('N','V','1','2'):
case MAKEFOURCC('I','M','C','2'):
case MAKEFOURCC('I','M','C','4'):
max_length = pitch * height * 3 / 2;
break;
default: