Commit be5567ca authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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.
parent 53d61587
...@@ -171,7 +171,7 @@ int aout_OutputNew( audio_output_t *p_aout, ...@@ -171,7 +171,7 @@ int aout_OutputNew( audio_output_t *p_aout,
else else
/* Otherwise, audio filters will not work. Use fixed-point if the input has /* Otherwise, audio filters will not work. Use fixed-point if the input has
* more than 16-bits depth. */ * 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; owner->mixer_format.i_format = VLC_CODEC_FI32;
else else
/* Fallback to 16-bits. This avoids pointless conversion to and from /* Fallback to 16-bits. This avoids pointless conversion to and from
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment