forked from enlightenment/efl
evas - avif - dont be noisy with eina err logs on invalid files
evas will use all loaders (brute force) if it can't guess by extension - this means loaders need to stay quiet about invalid file formats as this is literally intended to probe if the file is really of that format when nothng is known about it.
This commit is contained in:
parent
30a2cd1ec1
commit
97b809084c
|
@ -65,7 +65,6 @@ evas_image_load_file_head_avif_internal(Evas_Loader_Internal *loader,
|
|||
codec_name = avifCodecName(decoder->codecChoice, AVIF_CODEC_FLAG_CAN_DECODE);
|
||||
if (!codec_name)
|
||||
{
|
||||
ERR("AV1 codec not available");
|
||||
*error = EVAS_LOAD_ERROR_GENERIC;
|
||||
goto destroy_decoder;
|
||||
}
|
||||
|
@ -76,14 +75,12 @@ evas_image_load_file_head_avif_internal(Evas_Loader_Internal *loader,
|
|||
res = avifDecoderParse(decoder);
|
||||
if (res != AVIF_RESULT_OK)
|
||||
{
|
||||
ERR("avif file format invalid");
|
||||
*error = EVAS_LOAD_ERROR_GENERIC;
|
||||
goto destroy_decoder;
|
||||
}
|
||||
|
||||
if (decoder->imageCount < 1)
|
||||
{
|
||||
ERR("avif file format invalid");
|
||||
*error = EVAS_LOAD_ERROR_GENERIC;
|
||||
goto destroy_decoder;
|
||||
}
|
||||
|
@ -91,7 +88,6 @@ evas_image_load_file_head_avif_internal(Evas_Loader_Internal *loader,
|
|||
res = avifDecoderNextImage(decoder);
|
||||
if (res != AVIF_RESULT_OK)
|
||||
{
|
||||
ERR("avif file format invalid");
|
||||
*error = EVAS_LOAD_ERROR_GENERIC;
|
||||
goto destroy_decoder;
|
||||
}
|
||||
|
@ -162,7 +158,6 @@ evas_image_load_file_data_avif_internal(Evas_Loader_Internal *loader,
|
|||
AVIF_CODEC_FLAG_CAN_DECODE);
|
||||
if (!codec_name)
|
||||
{
|
||||
ERR("AV1 codec not available");
|
||||
*error = EVAS_LOAD_ERROR_GENERIC;
|
||||
goto on_error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue