[vlc-commits] [Git][videolan/vlc][3.0.x] coreaudio: add missing aout_FormatPrepare()

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri May 12 04:17:29 UTC 2023



Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC


Commits:
9bf98ebf by Thomas Guillem at 2023-05-11T06:07:19+02: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 ea9c30171d821dc5d066ff0a762ce5d4ebf256db

Fixes #28117

(cherry picked from commit c2b716c3148fbd8c8137434289007d6b70f7f2c5)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

- - - - -


1 changed file:

- modules/audio_output/coreaudio_common.c


Changes:

=====================================
modules/audio_output/coreaudio_common.c
=====================================
@@ -855,6 +855,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/9bf98ebf8c692c691b947b53ec5594d426902d61

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9bf98ebf8c692c691b947b53ec5594d426902d61
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