diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-07-06 21:08:16 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-07-06 21:08:16 +0200 |
commit | 80aa3fe15f6346102c29b9c4236fe1e89c283d3b (patch) | |
tree | ce74f3643b6d3e03050df0940e484d12235f9949 /src/photos/WebPSupport.vala | |
parent | 79a133306dee3c727edf09655767987ec11e2c4f (diff) | |
parent | df7f03cb7f772b9a87896bfa189bccd4068d1963 (diff) |
Merge branch 'release/debian/0.32.7-1'debian/0.32.7-1
Diffstat (limited to 'src/photos/WebPSupport.vala')
-rw-r--r-- | src/photos/WebPSupport.vala | 6 |
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; + } } |