[vlc-commits] [Git][videolan/vlc][master] coreaudio: add missing aout_FormatPrepare()

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Wed May 10 13:48:11 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
c2b716c3 by Thomas Guillem at 2023-05-10T13:26:53+00:00
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 87bbf8f272ef6b38b6ed1c002e96f570aba0f4a8

Fixes #28117

- - - - -


1 changed file:

- modules/audio_output/coreaudio_common.c


Changes:

=====================================
modules/audio_output/coreaudio_common.c
=====================================
@@ -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;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c2b716c3148fbd8c8137434289007d6b70f7f2c5

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c2b716c3148fbd8c8137434289007d6b70f7f2c5
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list