summaryrefslogtreecommitdiff
path: root/src/photos/WebPSupport.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-07-02 12:17:06 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-07-02 12:17:06 +0200
commit61f9dce95c1523ae06c0a608e17676659412b64c (patch)
tree6d8390c1c32b05e048599e529e2aef9d345d4160 /src/photos/WebPSupport.vala
parentdcfb4504919bc8bc36e8b38d2a88349e4f549b10 (diff)
parent1de91b6c81b1cff3c922eae852e5bb08f32cd2d3 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/photos/WebPSupport.vala')
-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;
+
}
}