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
bf800b5e
Commit
bf800b5e
authored
Jan 29, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/reader: Adjust min_buffer_size to be 1s of audio data.
parent
7865026f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
reader.c
dlls/mfreadwrite/reader.c
+8
-3
No files found.
dlls/mfreadwrite/reader.c
View file @
bf800b5e
...
...
@@ -1912,9 +1912,14 @@ static HRESULT source_reader_create_transform(struct source_reader *reader, BOOL
list_init
(
&
entry
->
entry
);
entry
->
category
=
category
;
if
(
IsEqualGUID
(
&
out_type
.
guidMajorType
,
&
MFMediaType_Audio
))
IMFMediaType_GetUINT32
(
output_type
,
&
MF_MT_AUDIO_BLOCK_ALIGNMENT
,
&
entry
->
min_buffer_size
);
if
(
IsEqualGUID
(
&
out_type
.
guidMajorType
,
&
MFMediaType_Audio
)
&&
SUCCEEDED
(
IMFMediaType_GetUINT32
(
output_type
,
&
MF_MT_AUDIO_BLOCK_ALIGNMENT
,
&
entry
->
min_buffer_size
)))
{
UINT32
bytes_per_second
;
if
(
SUCCEEDED
(
IMFMediaType_GetUINT32
(
output_type
,
&
MF_MT_AUDIO_AVG_BYTES_PER_SECOND
,
&
bytes_per_second
)))
entry
->
min_buffer_size
=
max
(
entry
->
min_buffer_size
,
bytes_per_second
);
}
count
=
0
;
if
(
SUCCEEDED
(
hr
=
MFTEnum
(
category
,
0
,
&
in_type
,
allow_processor
?
NULL
:
&
out_type
,
NULL
,
&
classes
,
&
count
)))
...
...
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