From e749b5dd9873eb6fb31dde9041c81d5032574de2 Mon Sep 17 00:00:00 2001 From: Johannes Nixdorf Date: Sun, 16 Dec 2012 16:02:08 +0100 Subject: configure: consider using /usr/include/openjpeg-1.5 when searching for openjpeg Beginning with version 1.5.1 openjpeg defaults to install its headers to /usr/include/openjpeg-${major}.${minor} instead of /usr/include without providing a compatibility symlink making the old test fail. Signed-off-by: Michael Niedermayer --- libavcodec/libopenjpegenc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libavcodec/libopenjpegenc.c') diff --git a/libavcodec/libopenjpegenc.c b/libavcodec/libopenjpegenc.c index b87d4d4..13e8ef9 100644 --- a/libavcodec/libopenjpegenc.c +++ b/libavcodec/libopenjpegenc.c @@ -25,7 +25,6 @@ */ #define OPJ_STATIC -#include #include "libavutil/avassert.h" #include "libavutil/common.h" @@ -35,6 +34,12 @@ #include "avcodec.h" #include "internal.h" +#if HAVE_OPENJPEG_1_5_OPENJPEG_H +# include +#else +# include +#endif + typedef struct { AVClass *avclass; opj_image_t *image; -- cgit v1.1