[FFmpeg-devel] configure/libopenjpegdec.c/libopenjpegenc.c: Add support for LibOpenJPEG v2.2/git

Michael Bradshaw mjbshaw at google.com
Thu Jun 22 03:00:30 EEST 2017

On Wed, Jun 21, 2017 at 3:43 PM, Reino Wijnsma <rwijnsma at xs4all.nl> wrote:
> New patch included. Thanks.

Almost done! The OPJ_STATIC change that was introduced in OpenJPEG 2.1+
means FFmepg's configure script has to do some extra work. You'll see that
there are two check_lib calls for openjpeg-2.1. You'll need to mimic both
of those for v2.2. That is, the configure script diff should be:

+enabled libopenjpeg       && { { check_lib libopenjpeg
openjpeg-2.2/openjpeg.h opj_version -lopenjp2 -DOPJ_STATIC && add_cppflags
+                               check_lib libopenjpeg
openjpeg-2.2/openjpeg.h opj_version -lopenjp2 ||
+                               { check_lib libopenjpeg
openjpeg-2.1/openjpeg.h opj_version -lopenjp2 -DOPJ_STATIC && add_cppflags
                                check_lib libopenjpeg
openjpeg-2.1/openjpeg.h opj_version -lopenjp2 ||


More information about the ffmpeg-devel mailing list