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

aout_DecNew: remove redumdant check

i_channels is checked against i_physical_channels. This is enough to
enforce a reasonably small channels count.
parent f20299c2
......@@ -51,17 +51,6 @@ int aout_DecNew( audio_output_t *p_aout,
const aout_request_vout_t *p_request_vout )
{
/* Sanitize audio format */
if( p_format->i_channels > AOUT_CHAN_MAX )
{
msg_Err( p_aout, "too many audio channels (%u)",
p_format->i_channels );
return -1;
}
if( p_format->i_channels <= 0 )
{
msg_Err( p_aout, "no audio channels" );
return -1;
}
if( p_format->i_channels != aout_FormatNbChannels( p_format ) )
{
msg_Err( p_aout, "incompatible audio channels count with layout mask" );
......
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