diff options
author | wm4 <wm4@nowhere> | 2016-01-20 17:18:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-20 17:18:28 +0100 |
commit | ca00e347fc8bf8c7ddfd45ef488180c49537e698 (patch) | |
tree | 890d7a29712e6716252cd898cbb7becd40347016 /audio | |
parent | ac966ded11e22754ffa43b390e599e4242e29b37 (diff) | |
download | mpv-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.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/decode/ad_spdif.c | 3 |
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; |