Skip to content
Snippets Groups Projects
Commit c2b716c3 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf
Browse files

coreaudio: add missing aout_FormatPrepare()

It was missing after the format was being set to FL32, causing
i_bytes_per_frame mismatch when the input format size was different than
4.

It is already done in MapOutputLayout() since this function change the
number of channels but it was not done for the MapInputLayout() case.

Regression from 87bbf8f2

Fixes #28117
parent 7cc1c33b
No related branches found
No related tags found
Loading
Pipeline #341545 canceled with stage
in 1 minute and 18 seconds
......@@ -759,6 +759,7 @@ au_Initialize(audio_output_t *p_aout, AudioUnit au, audio_sample_format_t *fmt,
}
else
{
aout_FormatPrepare(fmt);
ret = MapInputLayout(p_aout, fmt, &inlayout_buf, &inlayout_size);
if (ret != VLC_SUCCESS)
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment