aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-03-28 16:03:20 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-03-28 16:03:40 +0100
commit7330f07dd763237b2cf22ee23528cc55541428f0 (patch)
treef9c12ce7a12da0c568ae342140d57172b0d7860b
parentd68e09525c90d82d21335b7c7bb1935ae9545adb (diff)
downloadfiv-7330f07dd763237b2cf22ee23528cc55541428f0.tar.gz
fiv-7330f07dd763237b2cf22ee23528cc55541428f0.tar.xz
fiv-7330f07dd763237b2cf22ee23528cc55541428f0.zip
Fix LibRaw 0.20 compatibility
-rw-r--r--fiv-io.c2
-rw-r--r--fiv-thumbnail.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/fiv-io.c b/fiv-io.c
index a405c93..2ea06cf 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -42,6 +42,8 @@
#include <libraw.h>
#if LIBRAW_VERSION >= LIBRAW_MAKE_VERSION(0, 21, 0)
#define LIBRAW_OPIONS_NO_MEMERR_CALLBACK 0
+#else
+#define rawparams params
#endif
#endif // HAVE_LIBRAW
#ifdef HAVE_RESVG
diff --git a/fiv-thumbnail.c b/fiv-thumbnail.c
index 80f378e..fffbac7 100644
--- a/fiv-thumbnail.c
+++ b/fiv-thumbnail.c
@@ -392,7 +392,7 @@ extract_libraw_unpack(libraw_data_t *iprc, int *flip, GError **error)
// The main image's "flip" often matches up, but sometimes doesn't, e.g.:
// - Phase One/H 25/H25_Outdoor_.IIQ
// - Phase One/H 25/H25_IT8.7-2_Card.TIF
- *flip = iprc->sizes.flip
+ *flip = iprc->sizes.flip;
return TRUE;
}