aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-01-08 08:04:13 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-01-08 08:04:58 +0100
commit77de7efc550c7c1fadcfb32cb43b8cfc3070e22a (patch)
treeac7d7ba1d64b7265f38e3f3e42cdcca3b0a8b39a
parent35c1f2c8ba43f6e8c567046247395042f775f80e (diff)
downloadfiv-77de7efc550c7c1fadcfb32cb43b8cfc3070e22a.tar.gz
fiv-77de7efc550c7c1fadcfb32cb43b8cfc3070e22a.tar.xz
fiv-77de7efc550c7c1fadcfb32cb43b8cfc3070e22a.zip
Bump Wuffs, clean up image loading
-rw-r--r--fiv-io.c11
m---------wuffs-mirror-release-c0
2 files changed, 3 insertions, 8 deletions
diff --git a/fiv-io.c b/fiv-io.c
index 236929a..641858e 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -2377,15 +2377,10 @@ fiv_io_open_from_data(const char *data, size_t len, const gchar *uri,
? open_libjpeg_enhanced(data, len, profile, error)
: open_libjpeg_turbo(data, len, profile, error);
break;
+ case WUFFS_BASE__FOURCC__WEBP:
+ surface = open_libwebp(data, len, uri, profile, error);
+ break;
default:
- // TODO(p): https://github.com/google/wuffs/commit/4c04ac1
- if ((surface = open_libwebp(data, len, uri, profile, error)))
- break;
- if (error) {
- g_debug("%s", (*error)->message);
- g_clear_error(error);
- }
-
#ifdef HAVE_LIBRAW // ---------------------------------------------------------
if ((surface = open_libraw(data, len, error)))
break;
diff --git a/wuffs-mirror-release-c b/wuffs-mirror-release-c
-Subproject a0e2454f0c21369f9775cad3bcaf1e3bb1db70b
+Subproject ebbecaa2fb439eff0aeedafadb4c2a984446dee