1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 18:42:09 +00:00
mpv/audio
wm4 76d1b430b0 audio: improve mp_chmap_to_lavc_unchecked() unknown chmap behavior
Change it so that it will always return a bitmask with the correct
number of channels set if an unknown channel map is passed. This didn't
work for channel counts larger than 8, as there are not any standard
channel layouts defined with more than 8 channels (both in mpv and
FFmpeg). Instead, it returned 0.

This will help when raising the maximum allowed channel count in mpv.
Some code in af_lavrresample relies on it, more or less.

One change is that unknown channel maps won't result in lavc standard
channel layouts anymore, just a set of random speakers. This should be
fine, as the caller of mp_chmap_to_lavc_unchecked() should handle these
cases. For mp_chmap_reorder_to_lavc() this is not so clear anymore, but
should also be ok.

For normal channel maps, simply dropping NA channels is still the
correct and wanted behavior.

Currently, the mpv maximum channel count is 8. This commit is
preparation for raising this limit.
2015-10-26 15:52:21 +01:00
..
decode audio: make spdif re-probe from normal decoding work 2015-10-06 20:21:29 +02:00
filter af: prevent endless loop when removing filters due to spdif 2015-10-26 15:51:26 +01:00
out audio: always log channel maps before determining final map 2015-10-26 15:52:08 +01:00
audio_buffer.c
audio_buffer.h
audio.c audio/filter: remove some useless filters 2015-09-03 23:55:36 +02:00
audio.h audio/filter: remove some useless filters 2015-09-03 23:55:36 +02:00
chmap_sel.c audio: always log channel maps before determining final map 2015-10-26 15:52:08 +01:00
chmap_sel.h audio: always log channel maps before determining final map 2015-10-26 15:52:08 +01:00
chmap.c audio: improve mp_chmap_to_lavc_unchecked() unknown chmap behavior 2015-10-26 15:52:21 +01:00
chmap.h audio: output human-readable channel layouts too 2015-06-25 19:10:24 +02:00
fmt-conversion.c Update license headers 2015-04-13 12:10:01 +02:00
fmt-conversion.h Update license headers 2015-04-13 12:10:01 +02:00
format.c audio/format: revise af_format_conversion_score 2015-09-10 23:58:09 -07:00
format.h ao_lavc: use new sample format determination code 2015-09-10 23:38:42 +02:00
mixer.c audio: fix restoring volume 2015-07-27 15:07:51 +02:00
mixer.h audio: change range of volume option/property 2015-05-22 18:35:03 +02:00