From 4e2ff7851127cd85c3e7d78b42eb884d0cda0ac3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 3 Aug 2021 21:24:51 +0200 Subject: Fix build with newer FFmpeg. --- src/lib/ffmpeg_examiner.cc | 3 ++- src/lib/ffmpeg_file_encoder.cc | 3 +++ src/lib/util.cc | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index bd6a9b20d..853db90be 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -33,8 +33,9 @@ extern "C" { #include #include #include -#include +#include #include +#include } DCPOMATIC_ENABLE_WARNINGS #include diff --git a/src/lib/ffmpeg_file_encoder.cc b/src/lib/ffmpeg_file_encoder.cc index 83e707725..533fd151c 100644 --- a/src/lib/ffmpeg_file_encoder.cc +++ b/src/lib/ffmpeg_file_encoder.cc @@ -29,6 +29,9 @@ #include "image.h" #include "cross.h" #include "compose.hpp" +extern "C" { +#include +} #include #include "i18n.h" diff --git a/src/lib/util.cc b/src/lib/util.cc index 2d2a63c35..4ce677bf6 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -367,10 +367,12 @@ dcpomatic_setup () SetUnhandledExceptionFilter(exception_handler); #endif +#ifdef DCPOMATIC_HAVE_AVREGISTER DCPOMATIC_DISABLE_WARNINGS av_register_all (); avfilter_register_all (); DCPOMATIC_ENABLE_WARNINGS +#endif #ifdef DCPOMATIC_OSX /* Add our library directory to the libltdl search path so that -- cgit v1.2.3