0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

ao_coreaudio_chmap: suppress vla warning

This commit is contained in:
Kacper Michajłow 2023-11-23 11:20:15 +01:00 committed by sfan5
parent aa362fdcf4
commit f84024b9dd

View File

@ -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) {