This header has existed since years and xbmc will not build with such an old ffmpeg version that does not have it.
# optional
AC_CHECK_HEADERS([libavutil/mem.h libavutil/samplefmt.h])
- # new FFmpeg have math headers
- AC_CHECK_HEADERS([libavutil/mathematics.h],,)
-
# Check for libswresample or libavresample headers.
AC_CHECK_HEADERS([libswresample/swresample.h libavresample/avresample.h])
#else
#include <ffmpeg/mem.h>
#endif
- #if (defined HAVE_LIBAVUTIL_MATHEMATICS_H)
- #include <libavutil/mathematics.h>
- #endif
+ #include <libavutil/mathematics.h>
#else
#include "libavutil/avutil.h"
//for av_get_default_channel_layout