mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-24 21:40:03 +01:00
spa: alsa: Fix off-by-one check in ELD channel position parsing
This commit is contained in:
parent
12b2e5d67c
commit
e2262617aa
1 changed files with 1 additions and 1 deletions
|
|
@ -1148,7 +1148,7 @@ static int hdmi_eld_changed(snd_mixer_elem_t *melem, unsigned int mask)
|
||||||
|
|
||||||
#define _ADD_CHANNEL_POSITION(pos) \
|
#define _ADD_CHANNEL_POSITION(pos) \
|
||||||
{ \
|
{ \
|
||||||
if (i + 1 < eld.lpcm_channels) \
|
if (i < eld.lpcm_channels) \
|
||||||
positions[i++] = pos; \
|
positions[i++] = pos; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue