[vlc-commits] [Git][videolan/vlc][master] 2 commits: access: pipewire: always terminate channel layout with 0

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Aug 27 13:47:52 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
10ccca75 by Steve Lhomme at 2026-08-27T13:29:27+00:00
access: pipewire: always terminate channel layout with 0

aout_CheckChannelReorder() expects a table that is terminated with 0.

- - - - -
4d4c22ca by Steve Lhomme at 2026-08-27T13:29:27+00:00
access: pipewire: limit the number of mapped channels to AOUT_CHAN_MAX

The table cannot contain more.

- - - - -


1 changed file:

- modules/access/pipewire.c


Changes:

=====================================
modules/access/pipewire.c
=====================================
@@ -153,8 +153,8 @@ static int initialize_audio_format(struct vlc_pw_stream *s, es_format_t *fmt, vl
         return -1;
     }
 
-    uint32_t chans_in[AOUT_CHAN_MAX];
-    for (uint32_t i = 0; i < channels; i++)
+    uint32_t chans_in[AOUT_CHAN_MAX + 1] = {0};
+    for (uint32_t i = 0; i < channels && i < AOUT_CHAN_MAX; i++)
     {
         uint16_t vlc_chan = 0;
         uint32_t pos = s->audio_format.info.raw.position[i];



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7c14f33fdc0071ef5337684379d3f570ee9d1c09...4d4c22cadc766514966ebbf31a1922f387c6d199

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7c14f33fdc0071ef5337684379d3f570ee9d1c09...4d4c22cadc766514966ebbf31a1922f387c6d199
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list