diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-23 11:20:15 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-11-24 10:05:09 +0100 |
commit | f84024b9dd9e0fff4239ee2a78d98dddb8ae0c73 (patch) | |
tree | 9f981186ce404b16f24df204ecba84a47f5931c7 /audio | |
parent | aa362fdcf440fb747c3aeb377ce51d91cc05f38b (diff) | |
download | mpv-f84024b9dd9e0fff4239ee2a78d98dddb8ae0c73.tar.bz2 mpv-f84024b9dd9e0fff4239ee2a78d98dddb8ae0c73.tar.xz |
ao_coreaudio_chmap: suppress vla warning
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_coreaudio_chmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/out/ao_coreaudio_chmap.c b/audio/out/ao_coreaudio_chmap.c index 3fd95503c9..fb7f577ea1 100644 --- a/audio/out/ao_coreaudio_chmap.c +++ b/audio/out/ao_coreaudio_chmap.c @@ -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) { |