Commit d42a6172 authored by Rafaël Carré's avatar Rafaël Carré

faad decoder: fix decoding with some samples

parent 4c49d3e1
...@@ -325,10 +325,11 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -325,10 +325,11 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{ {
msg_Warn( p_dec, "%s", faacDecGetErrorMessage( frame.error ) ); msg_Warn( p_dec, "%s", faacDecGetErrorMessage( frame.error ) );
if( frame.error == 21 ) if( frame.error == 21 || frame.error == 12 )
{ {
/* /*
* Once an "Unexpected channel configuration change" error * Once an "Unexpected channel configuration change"
* or a "Invalid number of channels" error
* occurs, it will occurs afterwards, and we got no sound. * occurs, it will occurs afterwards, and we got no sound.
* Reinitialization of the decoder is required. * Reinitialization of the decoder is required.
*/ */
......
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