Derek Lesho : mfplat: Fix max buffer length for IMC2/IMC4 formats.
Alexandre Julliard
julliard at winehq.org
Mon Jun 7 16:30:37 CDT 2021
Module: wine
Branch: master
Commit: 1eaf034efe0f472fa020bee12442dfa131f23f9a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1eaf034efe0f472fa020bee12442dfa131f23f9a
Author: Derek Lesho <dlesho at codeweavers.com>
Date: Mon Jun 7 19:40:15 2021 +0300
mfplat: Fix max buffer length for IMC2/IMC4 formats.
Signed-off-by: Derek Lesho <dlesho at codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mfplat/buffer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/mfplat/buffer.c b/dlls/mfplat/buffer.c
index e04cc1a9251..df11c8fd408 100644
--- a/dlls/mfplat/buffer.c
+++ b/dlls/mfplat/buffer.c
@@ -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:
More information about the wine-cvs
mailing list