avcodec/audio: set decoder error only when it's critical
authorThomas Guillem <thomas@gllm.fr>
Tue, 8 Nov 2016 15:14:51 +0000 (16:14 +0100)
committerThomas Guillem <thomas@gllm.fr>
Tue, 8 Nov 2016 15:14:51 +0000 (16:14 +0100)
modules/codec/avcodec/audio.c

index 3c9d71a..c1527b0 100644 (file)
@@ -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;
             }
         }