Skip to content

Commit dcaef0a

Browse files
committed
Do not downmix multichannel pcm if passthrough is enabled.
1 parent b00503d commit dcaef0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

player.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,11 @@ void cMpvPlayer::PlayerStart()
585585
{
586586
check_error(mpv_set_option_string(hMpv, "audio-spdif", "ac3,dts"));
587587
if (MpvPluginConfig->UseDtsHdPassthrough)
588+
{
589+
check_error(mpv_set_option_string(hMpv, "ad-lavc-downmix", "no"));
590+
check_error(mpv_set_option_string(hMpv, "audio-channels", "7.1,5.1,stereo"));
588591
check_error(mpv_set_option_string(hMpv, "audio-spdif", "ac3,dts,dts-hd,truehd,eac3"));
592+
}
589593
}
590594
else
591595
{

0 commit comments

Comments
 (0)