summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-20 17:18:28 +0100
committerwm4 <wm4@nowhere>2016-01-20 17:18:28 +0100
commitca00e347fc8bf8c7ddfd45ef488180c49537e698 (patch)
tree890d7a29712e6716252cd898cbb7becd40347016
parentac966ded11e22754ffa43b390e599e4242e29b37 (diff)
downloadmpv-ca00e347fc8bf8c7ddfd45ef488180c49537e698.tar.bz2
mpv-ca00e347fc8bf8c7ddfd45ef488180c49537e698.tar.xz
ad_spdif: if DTS-HD is requested, and profile unknown, use DTS-HD
This means there will be no loss if profile detection failed for some reason.
-rw-r--r--audio/decode/ad_spdif.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/decode/ad_spdif.c b/audio/decode/ad_spdif.c
index 8f762545f3..54e52a9566 100644
--- a/audio/decode/ad_spdif.c
+++ b/audio/decode/ad_spdif.c
@@ -191,7 +191,8 @@ static int init_filter(struct dec_audio *da, AVPacket *pkt)
break;
case AV_CODEC_ID_DTS: {
bool is_hd = profile == FF_PROFILE_DTS_HD_HRA ||
- profile == FF_PROFILE_DTS_HD_MA;
+ profile == FF_PROFILE_DTS_HD_MA ||
+ profile == FF_PROFILE_UNKNOWN;
if (spdif_ctx->use_dts_hd && is_hd) {
av_dict_set(&format_opts, "dtshd_rate", "768000", 0); // 4*192000
sample_format = AF_FORMAT_S_DTSHD;