Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
41288d0d
Commit
41288d0d
authored
Feb 22, 2023
by
Ziqing Hui
Committed by
Alexandre Julliard
Feb 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Correctly initialize DMO media type.
parent
a5b5cef3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
transform.c
dlls/mf/tests/transform.c
+5
-2
No files found.
dlls/mf/tests/transform.c
View file @
41288d0d
...
...
@@ -327,11 +327,14 @@ static void init_dmo_media_type_video(DMO_MEDIA_TYPE *media_type,
{
VIDEOINFOHEADER
*
header
=
(
VIDEOINFOHEADER
*
)(
media_type
+
1
);
BOOL
compressed
=
is_compressed_subtype
(
subtype
);
ULONG
codec_data_size
=
compressed
?
4
:
0
;
memset
(
media_type
,
0
,
sizeof
(
*
media_type
)
+
sizeof
(
*
header
)
+
codec_data_size
);
memset
(
header
,
0
,
sizeof
(
*
header
));
header
->
bmiHeader
.
biSize
=
sizeof
(
header
->
bmiHeader
);
header
->
bmiHeader
.
biWidth
=
width
;
header
->
bmiHeader
.
biHeight
=
height
;
header
->
bmiHeader
.
biPlanes
=
1
;
header
->
bmiHeader
.
biBitCount
=
subtype_to_bpp
(
subtype
);
header
->
bmiHeader
.
biCompression
=
subtype_to_compression
(
subtype
);
...
...
@@ -342,7 +345,7 @@ static void init_dmo_media_type_video(DMO_MEDIA_TYPE *media_type,
media_type
->
lSampleSize
=
0
;
media_type
->
formattype
=
FORMAT_VideoInfo
;
media_type
->
pUnk
=
NULL
;
media_type
->
cbFormat
=
sizeof
(
*
header
)
+
4
;
/* 4 bytes codec data. */
media_type
->
cbFormat
=
sizeof
(
*
header
)
+
codec_data_size
;
media_type
->
pbFormat
=
(
BYTE
*
)
header
;
}
...
...
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