summaryrefslogtreecommitdiff
path: root/src/photos
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-07-06 21:08:16 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-07-06 21:08:16 +0200
commit80aa3fe15f6346102c29b9c4236fe1e89c283d3b (patch)
treece74f3643b6d3e03050df0940e484d12235f9949 /src/photos
parent79a133306dee3c727edf09655767987ec11e2c4f (diff)
parentdf7f03cb7f772b9a87896bfa189bccd4068d1963 (diff)
Merge branch 'release/debian/0.32.7-1'HEADdebian/0.32.7-1master
Diffstat (limited to 'src/photos')
-rw-r--r--src/photos/WebPSupport.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/photos/WebPSupport.vala b/src/photos/WebPSupport.vala
index 2f4723c..b467b24 100644
--- a/src/photos/WebPSupport.vala
+++ b/src/photos/WebPSupport.vala
@@ -183,7 +183,13 @@ private class WebpSniffer : PhotoFileSniffer {
if (calc_md5)
detected.md5 = md5_checksum.get_string();
+ // We have never reached the header parsing state, but also didn't encounter any error
+ if (detected.file_format != PhotoFileFormat.WEBP) {
+ return null;
+ }
+
return detected;
+
}
}