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:
parent
b7c48c898c
commit
1eaf034efe
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue