Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3a0eb8bd
Commit
3a0eb8bd
authored
Feb 14, 2022
by
Giovanni Mascellani
Committed by
Alexandre Julliard
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Fix MFGetPlaneSize() behavior for invalid formats.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ee8ddf37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
mediatype.c
dlls/mfplat/mediatype.c
+4
-4
mfplat.c
dlls/mfplat/tests/mfplat.c
+5
-0
No files found.
dlls/mfplat/mediatype.c
View file @
3a0eb8bd
...
...
@@ -2755,10 +2755,10 @@ HRESULT WINAPI MFGetPlaneSize(DWORD fourcc, DWORD width, DWORD height, DWORD *si
memcpy
(
&
subtype
,
&
MFVideoFormat_Base
,
sizeof
(
subtype
));
subtype
.
Data1
=
fourcc
;
if
(
!
(
format
=
mf_get_video_format
(
&
subtype
)))
return
MF_E_INVALIDMEDIATYPE
;
stride
=
mf_get_stride_for_format
(
format
,
width
)
;
if
((
format
=
mf_get_video_format
(
&
subtype
)))
stride
=
mf_get_stride_for_format
(
format
,
width
)
;
else
stride
=
0
;
switch
(
fourcc
)
{
...
...
dlls/mfplat/tests/mfplat.c
View file @
3a0eb8bd
...
...
@@ -4254,6 +4254,11 @@ static void test_MFGetPlaneSize(void)
return
;
}
size
=
1
;
hr
=
pMFGetPlaneSize
(
0xdeadbeef
,
64
,
64
,
&
size
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
size
==
0
,
"Unexpected size %u.
\n
"
,
size
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
image_size_tests
);
++
i
)
{
const
struct
image_size_test
*
ptr
=
&
image_size_tests
[
i
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment