1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-01 11:50:48 +00:00
mpv/audio/out
wm4 b0ed93d87d audio: allow more than 20 channel map entries
This could trigger an assertion when using ao_alsa or ao_coreaudio. The
code was simply assuming the number of channel maps was bounded
statically (which was true at first in both AOs).

Fix by using dynamic memory allocation. It needs to be explicitly
enabled by the AOs by setting a temp context, because otherwise the
memory couldn't be freed. (Or at least this seems to be the most elegant
solution.)

Fixes #1306.
2014-12-01 15:28:06 +01:00
..
ao_alsa.c audio: allow more than 20 channel map entries 2014-12-01 15:28:06 +01:00
ao_coreaudio_exclusive.c audio/out: consistently use double return type for get_delay 2014-11-09 11:45:04 +01:00
ao_coreaudio_properties.c
ao_coreaudio_properties.h
ao_coreaudio_utils.c coreaudio: only list output devices 2014-10-28 14:11:50 +01:00
ao_coreaudio_utils.h coreaudio: use the new device selection API 2014-10-12 12:22:17 +02:00
ao_coreaudio.c audio: allow more than 20 channel map entries 2014-12-01 15:28:06 +01:00
ao_dsound.c audio/out: consistently use double return type for get_delay 2014-11-09 11:45:04 +01:00
ao_jack.c
ao_lavc.c ao_lavc: fix setting up AVFrame pointers 2014-11-21 10:09:25 +01:00
ao_null.c audio/out: consistently use double return type for get_delay 2014-11-09 11:45:04 +01:00
ao_openal.c audio/out: consistently use double return type for get_delay 2014-11-09 11:45:04 +01:00
ao_oss.c Do not call strerror() 2014-11-26 21:21:56 +01:00
ao_pcm.c ao_pcm: simplify 2014-11-21 10:09:38 +01:00
ao_portaudio.c ao_portaudio: implement device listing 2014-10-13 16:43:05 +02:00
ao_pulse.c audio/out: consistently use double return type for get_delay 2014-11-09 11:45:04 +01:00
ao_rsound.c audio/out: consistently use double return type for get_delay 2014-11-09 11:45:04 +01:00
ao_sdl.c
ao_sndio.c audio/out: consistently use double return type for get_delay 2014-11-09 11:45:04 +01:00
ao_wasapi_changenotify.c ao/wasapi: expose GUID and PKEY convenience functions 2014-11-28 10:48:36 -08:00
ao_wasapi_utils.c ao/wasapi: make set_ao_format EX/EXTENSIBLE agnostic 2014-12-01 03:40:24 -08:00
ao_wasapi_utils.h ao/wasapi: make functions return bool that were acting like it 2014-11-28 10:48:36 -08:00
ao_wasapi.c ao/wasapi: remove unnecessary check of audio thread input 2014-11-28 10:52:48 -08:00
ao_wasapi.h ao/wasapi: handle VistaBlob failure more gracefully 2014-11-28 10:52:48 -08:00
ao.c audio: make mp_chmap_to_str() return a stack-allocated string 2014-11-24 19:56:01 +01:00
ao.h audio/out: make ao_request_reload() idempotent 2014-11-09 09:58:44 +01:00
internal.h audio/out: consistently use double return type for get_delay 2014-11-09 11:45:04 +01:00
pull.c audio/out/pull: avoid deadlock if audio callback stops 2014-11-09 15:23:40 +01:00
push.c audio/out/push: fix off-by-one error 2014-11-21 03:50:57 +01:00