1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00
mpv/audio
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
..
decode audio: make decoders output refcounted frames 2014-11-10 22:02:05 +01:00
filter audio: make mp_audio_config_to_str return a stack-allocated string 2014-11-25 11:11:31 +01:00
out audio: allow more than 20 channel map entries 2014-12-01 15:28:06 +01:00
audio_buffer.c
audio_buffer.h
audio.c audio: make mp_audio_config_to_str return a stack-allocated string 2014-11-25 11:11:31 +01:00
audio.h audio: make mp_audio_config_to_str return a stack-allocated string 2014-11-25 11:11:31 +01:00
chmap_sel.c audio: allow more than 20 channel map entries 2014-12-01 15:28:06 +01:00
chmap_sel.h audio: allow more than 20 channel map entries 2014-12-01 15:28:06 +01:00
chmap.c audio: make mp_chmap_to_str() return a stack-allocated string 2014-11-24 19:56:01 +01:00
chmap.h audio: make mp_chmap_to_str() return a stack-allocated string 2014-11-24 19:56:01 +01:00
fmt-conversion.c
fmt-conversion.h
format.c ao/format: add af_fmt_is_float 2014-12-01 03:40:23 -08:00
format.h ao/format: add af_fmt_is_float 2014-12-01 03:40:23 -08:00
mixer.c mixer: don't show softvol neutral marker on OSD if not using softvol 2014-11-27 10:11:55 +01:00
mixer.h player: show "neutral" position markers for OSD bars 2014-06-08 23:52:58 +02:00