mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 23:36:58 +00:00
ao_coreaudio_chmap: suppress vla warning
This commit is contained in:
parent
aa362fdcf4
commit
f84024b9dd
@ -241,8 +241,8 @@ static AudioChannelLayout* ca_query_stereo_layout(struct ao *ao,
|
||||
void *talloc_ctx)
|
||||
{
|
||||
OSStatus err;
|
||||
const int nch = 2;
|
||||
uint32_t channels[nch];
|
||||
uint32_t channels[2];
|
||||
const int nch = MP_ARRAY_SIZE(channels);
|
||||
AudioChannelLayout *r = NULL;
|
||||
|
||||
AudioObjectPropertyAddress p_addr = (AudioObjectPropertyAddress) {
|
||||
|
Loading…
Reference in New Issue
Block a user