0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/audio
wm4 1919f1e05b ad_spdif: use DTS-HD passthrough only if the audio is really DTS-HD
Apparently some A/V receivers do not behave well if "normal" DTS is
passed through using the high bitrate spdif format normally used for
DTS-HD (other receivers are fine with it).

Parse the first packet passed to ad_spdif by decoding it with libavcodec
in order to get the profile. Ignore the --ad-spdif-dtshd if it's not
DTS-HD. (If the codec profile changes midstream, the user is out of
luck. But this is probably an insignificant corner case.)

I thought about parsing the bitstream, but let's not. While it probably
wouldn't be that much effort, we are trying to keep it down on codec
details here - otherwise we could just do our own spdif framing instead
of using libavformat's spdif pseudo-muxer.

Another possibility, using the codec parameters signalled by
libavformat, is disregarded. Our builtin Matroska decoder doesn't do
this, and also we do not want on the demuxer having to decode some
packets in order to retrieve codec params (as libavformat does).

Fixes #1949.
2015-05-19 21:35:43 +02:00
..
decode ad_spdif: use DTS-HD passthrough only if the audio is really DTS-HD 2015-05-19 21:35:43 +02:00
filter af: don't attempt to remove last filter for spdif filter removal 2015-05-05 21:47:48 +02:00
out threads: use utility+POSIX functions instead of weird wrappers 2015-05-11 23:44:36 +02:00
audio_buffer.c Split mpvcore/ into common/, misc/, bstr/ 2013-12-17 02:39:45 +01:00
audio_buffer.h audio: add mp_audio_buffer 2013-11-12 23:28:21 +01:00
audio.c audio: introduce mp_audio readonly bit 2015-05-04 23:57:25 +02:00
audio.h audio: introduce mp_audio readonly bit 2015-05-04 23:57:25 +02:00
chmap_sel.c audio: redo channel map fallback selection 2015-05-08 19:33:17 +02:00
chmap_sel.h chmap_sel: add multichannel fallback heuristic 2014-12-29 17:56:53 +01:00
chmap.c audio: simplify further 2015-05-08 21:22:39 +02:00
chmap.h audio: simplify further 2015-05-08 21:22:39 +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 Update license headers 2015-04-13 12:10:01 +02:00
format.h audio: minor cosmetics 2015-05-05 21:47:36 +02:00
mixer.c Update license headers 2015-04-13 12:10:01 +02:00
mixer.h Update license headers 2015-04-13 12:10:01 +02:00