mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
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 <michaelni@gmx.at>
This commit is contained in:
parent
985aa0be82
commit
e749b5dd98
5
configure
vendored
5
configure
vendored
@ -1406,6 +1406,7 @@ HAVE_LIST="
|
|||||||
mprotect
|
mprotect
|
||||||
msvcrt
|
msvcrt
|
||||||
nanosleep
|
nanosleep
|
||||||
|
openjpeg_1_5_openjpeg_h
|
||||||
PeekNamedPipe
|
PeekNamedPipe
|
||||||
perl
|
perl
|
||||||
pod2man
|
pod2man
|
||||||
@ -3843,7 +3844,9 @@ enabled libnut && require libnut libnut.h nut_demuxer_init -lnut
|
|||||||
enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb
|
enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb
|
||||||
enabled libopencore_amrwb && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb
|
enabled libopencore_amrwb && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb
|
||||||
enabled libopencv && require_pkg_config opencv opencv/cxcore.h cvCreateImageHeader
|
enabled libopencv && require_pkg_config opencv opencv/cxcore.h cvCreateImageHeader
|
||||||
enabled libopenjpeg && require libopenjpeg openjpeg.h opj_version -lopenjpeg
|
enabled libopenjpeg && { check_lib openjpeg-1.5/openjpeg.h opj_version -lopenjpeg ||
|
||||||
|
check_lib openjpeg.h opj_version -lopenjpeg ||
|
||||||
|
die "ERROR: libopenjpeg not found"; }
|
||||||
enabled libopus && require_pkg_config opus opus_multistream.h opus_multistream_decoder_create
|
enabled libopus && require_pkg_config opus opus_multistream.h opus_multistream_decoder_create
|
||||||
enabled libpulse && require_pkg_config libpulse-simple pulse/simple.h pa_simple_new
|
enabled libpulse && require_pkg_config libpulse-simple pulse/simple.h pa_simple_new
|
||||||
enabled librtmp && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket
|
enabled librtmp && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define OPJ_STATIC
|
#define OPJ_STATIC
|
||||||
#include <openjpeg.h>
|
|
||||||
|
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
@ -35,6 +34,12 @@
|
|||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
|
|
||||||
|
#if HAVE_OPENJPEG_1_5_OPENJPEG_H
|
||||||
|
# include <openjpeg-1.5/openjpeg.h>
|
||||||
|
#else
|
||||||
|
# include <openjpeg.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define JP2_SIG_TYPE 0x6A502020
|
#define JP2_SIG_TYPE 0x6A502020
|
||||||
#define JP2_SIG_VALUE 0x0D0A870A
|
#define JP2_SIG_VALUE 0x0D0A870A
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define OPJ_STATIC
|
#define OPJ_STATIC
|
||||||
#include <openjpeg.h>
|
|
||||||
|
|
||||||
#include "libavutil/avassert.h"
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
@ -35,6 +34,12 @@
|
|||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
|
#if HAVE_OPENJPEG_1_5_OPENJPEG_H
|
||||||
|
# include <openjpeg-1.5/openjpeg.h>
|
||||||
|
#else
|
||||||
|
# include <openjpeg.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
AVClass *avclass;
|
AVClass *avclass;
|
||||||
opj_image_t *image;
|
opj_image_t *image;
|
||||||
|
Loading…
Reference in New Issue
Block a user