diff options
-rwxr-xr-x | configure.in | 3 | ||||
-rw-r--r-- | lib/DllAvUtil.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.in b/configure.in index b4c87a290c..fc82e55fde 100755 --- a/configure.in +++ b/configure.in @@ -1214,6 +1214,9 @@ if test "$use_external_ffmpeg" = "yes"; then # old FFmpeg have this in libavcodec/opt.h instead: AC_CHECK_HEADERS([libavutil/opt.h]) + # new FFmpeg have math headers + AC_CHECK_HEADERS([libavutil/mathematics.h],,) + # We'll support the use of rgb2rgb.h if it exists. AC_CHECK_HEADERS([libswscale/rgb2rgb.h],,) AC_CHECK_HEADERS([ffmpeg/rgb2rgb.h],,) diff --git a/lib/DllAvUtil.h b/lib/DllAvUtil.h index 6d17eb3356..8ef67dc131 100644 --- a/lib/DllAvUtil.h +++ b/lib/DllAvUtil.h @@ -59,6 +59,9 @@ extern "C" { #else #include <ffmpeg/mem.h> #endif + #if (defined HAVE_LIBAVUTIL_MATHEMATICS_H) + #include <libavutil/mathematics.h> + #endif #else #include "libavutil/avutil.h" #include "libavutil/audioconvert.h" |