diff options
author | Joonas Niilola <juippis@gentoo.org> | 2021-03-12 10:56:14 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-03-12 10:56:36 +0200 |
commit | c0efae0033cfc8f1604758004da1ad6c49aa69d0 (patch) | |
tree | 673b31487100355dc5dc1bf589cec252d15bbb7e /dev-libs/efl/files | |
parent | app-text/asciidoc: stabilize 9.0.4 on ppc (diff) | |
download | gentoo-c0efae0033cfc8f1604758004da1ad6c49aa69d0.tar.gz gentoo-c0efae0033cfc8f1604758004da1ad6c49aa69d0.tar.bz2 gentoo-c0efae0033cfc8f1604758004da1ad6c49aa69d0.zip |
dev-libs/efl: patch avif to work again
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/efl/files')
-rw-r--r-- | dev-libs/efl/files/efl-1.25.1-libavif-fix.patch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/dev-libs/efl/files/efl-1.25.1-libavif-fix.patch b/dev-libs/efl/files/efl-1.25.1-libavif-fix.patch new file mode 100644 index 000000000000..ab11790f1b79 --- /dev/null +++ b/dev-libs/efl/files/efl-1.25.1-libavif-fix.patch @@ -0,0 +1,71 @@ +From 00f5eed1d2390d204c83a2cb78a37531f6bbe49c Mon Sep 17 00:00:00 2001 +From: "Carsten Haitzler (Rasterman)" <raster@rasterman.com> +Date: Fri, 18 Dec 2020 11:16:38 +0000 +Subject: evas - avif - fix for 0.8.2 libavif that broke api + +also require 0.8.2 ... as well - no point trying to support older +versions forever and this is still experimental. + +fixes T8844 +@fix +--- + src/modules/evas/image_loaders/avif/evas_image_load_avif.c | 14 ++++---------- + 1 file changed, 4 insertions(+), 10 deletions(-) + +(limited to 'src/modules/evas/image_loaders/avif/evas_image_load_avif.c') + +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 34b6da9bd3..f7cfe0ef03 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 +@@ -43,7 +43,6 @@ evas_image_load_file_head_avif_internal(Evas_Loader_Internal *loader, + int *error) + { + Evas_Image_Animated *animated; +- avifROData raw; + avifDecoder *decoder; + avifResult res; + Eina_Bool ret; +@@ -55,9 +54,6 @@ evas_image_load_file_head_avif_internal(Evas_Loader_Internal *loader, + prop->h = 0; + prop->alpha = EINA_FALSE; + +- raw.size = length; +- raw.data = (const uint8_t *)map; +- + decoder = avifDecoderCreate(); + if (!decoder) + { +@@ -65,7 +61,8 @@ evas_image_load_file_head_avif_internal(Evas_Loader_Internal *loader, + return ret; + } + +- res = avifDecoderParse(decoder, &raw); ++ avifDecoderSetIOMemory(decoder, (const uint8_t *)map, length); ++ res = avifDecoderParse(decoder); + if (res != AVIF_RESULT_OK) + { + ERR("avif file format invalid"); +@@ -141,7 +138,6 @@ evas_image_load_file_data_avif_internal(Evas_Loader_Internal *loader, + decoder = loader->decoder; + if (!decoder) + { +- avifROData raw; + decoder = avifDecoderCreate(); + if (!decoder) + { +@@ -149,10 +145,8 @@ evas_image_load_file_data_avif_internal(Evas_Loader_Internal *loader, + return EINA_FALSE; + } + +- raw.size = length; +- raw.data = (const uint8_t *)map; +- +- res = avifDecoderParse(decoder, &raw); ++ avifDecoderSetIOMemory(decoder, (const uint8_t *)map, length); ++ res = avifDecoderParse(decoder); + if (res != AVIF_RESULT_OK) + { + *error = EVAS_LOAD_ERROR_GENERIC; +-- +cgit v1.2.1 |