Fix LibRaw 0.20 compatibility

This commit is contained in:
Přemysl Eric Janouch 2024-03-28 16:03:20 +01:00
parent d68e09525c
commit 7330f07dd7
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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;
}