From be5567ca51936fdef807f29ef4230529cfd4da18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 2 Oct 2011 21:12:34 +0300 Subject: [PATCH] Consider non-linear formats as more than 16-bits too This should fix a regression on non-FPU builds whereby the built-in downmix of some decoders was not used anymore. --- src/audio_output/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio_output/output.c b/src/audio_output/output.c index 6db331b90e..3959038e2b 100644 --- a/src/audio_output/output.c +++ b/src/audio_output/output.c @@ -171,7 +171,7 @@ int aout_OutputNew( audio_output_t *p_aout, else /* Otherwise, audio filters will not work. Use fixed-point if the input has * more than 16-bits depth. */ - if( p_format->i_bitspersample > 16 ) + if( p_format->i_bitspersample > 16 || !AOUT_FMT_LINEAR(p_format)) owner->mixer_format.i_format = VLC_CODEC_FI32; else /* Fallback to 16-bits. This avoids pointless conversion to and from -- GitLab