From b0b0e6957089b2031eba60bcfdb28eaf6b59012d Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 10 Mar 2014 02:14:51 +0100 Subject: audio: don't downmix when doing digital passthrough This obviously doesn't work. It wasn't much of a problem in the past because most passthrough formats use 2 channels, which is also the default for downmix. --- player/audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'player') diff --git a/player/audio.c b/player/audio.c index bbe4174890..28a110eba8 100644 --- a/player/audio.c +++ b/player/audio.c @@ -143,7 +143,8 @@ void reinit_audio_chain(struct MPContext *mpctx) ao_format = out_format.format; ao_channels = out_format.channels; } else { - ao_channels = opts->audio_output_channels; // automatic downmix + if (!AF_FORMAT_IS_SPECIAL(in_format.format)) + ao_channels = opts->audio_output_channels; // automatic downmix } // Determine what the filter chain outputs. build_afilter_chain() also -- cgit v1.2.3