[vlc-devel] [PATCH 19/25] codec:jpeg: fix the returned error when initializing fails

Francois Cartegnie fcvlcdev at free.fr
Tue Jul 11 10:58:00 CEST 2017


Le 10/07/2017 à 16:52, Steve Lhomme a écrit :
> ---
>  modules/codec/jpeg.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/modules/codec/jpeg.c b/modules/codec/jpeg.c
> index c3119db968..0c249c0f0c 100644
> --- a/modules/codec/jpeg.c
> +++ b/modules/codec/jpeg.c
> @@ -582,7 +582,7 @@ error:
>      free(p_row_pointers);
>  
>      block_Release(p_block);
> -    return VLCDEC_SUCCESS;
> +    return VLCDEC_ECRITICAL;
>  }

I don't see why a single corrupted picture would kill the decoder for good.

Francois


More information about the vlc-devel mailing list