Commit 611fc2e2 authored by Thomas Guillem's avatar Thomas Guillem

avcodec/audio: set decoder error only when it's critical

parent 08207425
......@@ -401,7 +401,10 @@ static block_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
}
else if ( ret != AVERROR(EAGAIN) ) /* Errors other than buffer full */
{
goto end;
if( ret == AVERROR(ENOMEM) || ret == AVERROR(EINVAL) )
goto end;
else
goto drop;
}
}
......
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