summaryrefslogtreecommitdiff
path: root/src/photos
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-08-12 10:07:55 +0200
committerJörg Frings-Fürst <debian@jff.email>2023-08-12 10:07:55 +0200
commit2333d2b06d52754a55a747fa438844286f98d53a (patch)
treee46351c8ec622c9d13232cf00c8a1048e55184af /src/photos
parent7f667adb7b8d3a803a6cd6120dcea4ba4ff89075 (diff)
parentd0aaad443a88968dc61172c050084d3d9faa7602 (diff)
Update upstream source from tag 'upstream/0.32.2'
Update to upstream version '0.32.2' with Debian dir f0c4eb48b3e5ba2a80bbd45ac2effe5ecd515530
Diffstat (limited to 'src/photos')
-rw-r--r--src/photos/HeifSupport.vala2
-rw-r--r--src/photos/JfifSupport.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/photos/HeifSupport.vala b/src/photos/HeifSupport.vala
index 0c05e02..58b9d9d 100644
--- a/src/photos/HeifSupport.vala
+++ b/src/photos/HeifSupport.vala
@@ -5,7 +5,7 @@
*/
class HeifFileFormatProperties : PhotoFileFormatProperties {
- private static string[] KNOWN_EXTENSIONS = { "heif", "heic" };
+ private static string[] KNOWN_EXTENSIONS = { "heif", "heic", "hif" };
private static string[] KNOWN_MIME_TYPES = { "image/heif" };
private static HeifFileFormatProperties instance = null;
diff --git a/src/photos/JfifSupport.vala b/src/photos/JfifSupport.vala
index 0de45f8..27a8b11 100644
--- a/src/photos/JfifSupport.vala
+++ b/src/photos/JfifSupport.vala
@@ -223,7 +223,7 @@ namespace Jpeg {
public bool is_sof() {
// FFCn is SOF unless n is a multiple of 4 > 0 (FFC4, FFC8, FFCC)
- if ((this & 0xC0) != 0xC0) {
+ if ((this >> 4) != 0xC) {
return false;
}