This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch dev/dimmus/gcc-15
in repository efl.
View the commit online.
commit f0401161328ea9063e3963304ec6f88776b4d260
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Sat May 3 15:06:15 2025 +0100
evas - avif - silence unused result warns
---
.../evas/image_loaders/avif/evas_image_load_avif.c | 21 ++++++++++++++++++---
.../evas/image_savers/avif/evas_image_save_avif.c | 4 +++-
2 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/src/modules/evas/image_loaders/avif/evas_image_load_avif.c b/src/modules/evas/image_loaders/avif/evas_image_load_avif.c
index 2ea129f79f..0e2ed82237 100644
--- a/src/modules/evas/image_loaders/avif/evas_image_load_avif.c
+++ b/src/modules/evas/image_loaders/avif/evas_image_load_avif.c
@@ -71,7 +71,12 @@ evas_image_load_file_head_avif_internal(Evas_Loader_Internal *loader,
INF("AV1 codec name (decode): %s", codec_name);
- avifDecoderSetIOMemory(decoder, (const uint8_t *)map, length);
+ res = avifDecoderSetIOMemory(decoder, (const uint8_t *)map, length);
+ if (res != AVIF_RESULT_OK)
+ {
+ *error = EVAS_LOAD_ERROR_GENERIC;
+ goto destroy_decoder;
+ }
res = avifDecoderParse(decoder);
if (res != AVIF_RESULT_OK)
{
@@ -164,7 +169,12 @@ evas_image_load_file_data_avif_internal(Evas_Loader_Internal *loader,
INF("AV1 codec name (decode): %s", codec_name);
- avifDecoderSetIOMemory(decoder, (const uint8_t *)map, length);
+ res = avifDecoderSetIOMemory(decoder, (const uint8_t *)map, length);
+ if (res != AVIF_RESULT_OK)
+ {
+ *error = EVAS_LOAD_ERROR_GENERIC;
+ goto on_error;
+ }
res = avifDecoderParse(decoder);
if (res != AVIF_RESULT_OK)
{
@@ -206,7 +216,12 @@ evas_image_load_file_data_avif_internal(Evas_Loader_Internal *loader,
rgb.pixels = pixels;
rgb.rowBytes = 4 * decoder->image->width;
- avifImageYUVToRGB(decoder->image, &rgb);
+ res = avifImageYUVToRGB(decoder->image, &rgb);
+ if (res != AVIF_RESULT_OK)
+ {
+ *error = EVAS_LOAD_ERROR_GENERIC;
+ goto on_error;
+ }
*error = EVAS_LOAD_ERROR_NONE;
diff --git a/src/modules/evas/image_savers/avif/evas_image_save_avif.c b/src/modules/evas/image_savers/avif/evas_image_save_avif.c
index f02d0ec64c..35087c4355 100644
--- a/src/modules/evas/image_savers/avif/evas_image_save_avif.c
+++ b/src/modules/evas/image_savers/avif/evas_image_save_avif.c
@@ -99,7 +99,9 @@ save_image_avif(RGBA_Image *im, const char *file, int quality)
rgb.depth = 8;
rgb.pixels = (uint8_t *)im->image.data;
rgb.rowBytes = 4 * im->cache_entry.w;
- avifImageRGBToYUV(image, &rgb);
+ res = avifImageRGBToYUV(image, &rgb);
+ if (res != AVIF_RESULT_OK)
+ goto destroy_image;
output.data = ""
output.size = 0;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.