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
416a2732
Commit
416a2732
authored
Sep 18, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Sep 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Also return output with 2 channels for multichannel inputs from AAC decoder.
parent
bb95f8c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
transform.c
dlls/mf/tests/transform.c
+1
-1
aac_decoder.c
dlls/winegstreamer/aac_decoder.c
+8
-0
No files found.
dlls/mf/tests/transform.c
View file @
416a2732
...
...
@@ -2649,7 +2649,7 @@ static void test_aac_decoder_channels(const struct attribute_desc *input_type_de
}
ok
(
hr
==
MF_E_NO_MORE_TYPES
,
"got %#lx.
\n
"
,
hr
);
if
(
many_channels
)
todo_wine
ok
(
i
==
ARRAY_SIZE
(
expect_available_outputs
)
*
2
,
"got %lu media types.
\n
"
,
i
);
ok
(
i
==
ARRAY_SIZE
(
expect_available_outputs
)
*
2
,
"got %lu media types.
\n
"
,
i
);
else
ok
(
i
==
ARRAY_SIZE
(
expect_available_outputs
),
"got %lu media types.
\n
"
,
i
);
winetest_pop_context
();
...
...
dlls/winegstreamer/aac_decoder.c
View file @
416a2732
...
...
@@ -311,6 +311,14 @@ static HRESULT WINAPI transform_GetOutputAvailableType(IMFTransform *iface, DWOR
if
(
channel_count
>=
ARRAY_SIZE
(
default_channel_mask
))
return
MF_E_INVALIDMEDIATYPE
;
if
(
channel_count
>
2
&&
index
>=
ARRAY_SIZE
(
aac_decoder_output_types
))
{
/* If there are more than two channels in the input type GetOutputAvailableType additionally lists
* types with 2 channels. */
index
-=
ARRAY_SIZE
(
aac_decoder_output_types
);
channel_count
=
2
;
}
if
(
index
>=
ARRAY_SIZE
(
aac_decoder_output_types
))
return
MF_E_NO_MORE_TYPES
;
index
=
ARRAY_SIZE
(
aac_decoder_output_types
)
-
index
-
1
;
...
...
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