summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libxinevdec/image.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libxinevdec/image.c b/src/libxinevdec/image.c
index 51e5d0309..a4d09a63c 100644
--- a/src/libxinevdec/image.c
+++ b/src/libxinevdec/image.c
@@ -50,6 +50,15 @@
#include "xineutils.h"
#include "bswap.h"
+/* In 6.4.5.4 MagickGetImagePixels changed to MagickGetAuthenticPixels
+ * But upstream did not update their deprecated compat stuff.
+ * So do a fun hack to make it work.
+ * - 2008/11/26 Robin H. Johnson <robbat2@gentoo.org>
+ */
+#if MagickLibVersion >= 0x645
+#define MagickGetImagePixels MagickGetAuthenticPixels
+#endif
+
typedef struct {
video_decoder_class_t decoder_class;