summaryrefslogtreecommitdiff
path: root/src/photos
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-07-02 12:16:35 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-07-02 12:16:35 +0200
commitf6062696f6bbd00d4eaa8a6e994dabfefc455f31 (patch)
tree4ba5e313f32c3f6973acbefe29203fd9602986dd /src/photos
parent5303f650e34763817d7eeb1d3ba774bdec3e1a38 (diff)
New upstream version 0.32.7upstream/0.32.7upstream
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;
+
}
}