diff options
author | Leo Izen <leo.izen@gmail.com> | 2022-03-17 08:34:35 -0400 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2022-03-17 20:07:55 +0200 |
commit | f871294204529374dd3056f7b616381400233036 (patch) | |
tree | 597329901f54713d1cd9c5d3e3274b1237b67ab9 /common | |
parent | 5ef7bf7a20cd237225c7caae875f84ecdf1d18d2 (diff) | |
download | mpv-f871294204529374dd3056f7b616381400233036.tar.bz2 mpv-f871294204529374dd3056f7b616381400233036.tar.xz |
common/av_log: explicitly include version.h for required libraries
FFmpeg recently split version.h into version.h and
version_major.h, and no longer automatically includes
version.h in avcodec.h (and the other libraries). This
should allow mpv to build against ffmpeg git master. See
FFmpeg/ffmpeg@f2da2e1458b76a1d6c068673430b46cf2850bc51
These headers are not new, so their inclusion should not affect
backwards compatibility.
Diffstat (limited to 'common')
-rw-r--r-- | common/av_log.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/av_log.c b/common/av_log.c index 8122d3a65b..e07721852c 100644 --- a/common/av_log.c +++ b/common/av_log.c @@ -32,12 +32,18 @@ #include <libavutil/avutil.h> #include <libavutil/log.h> +#include <libavutil/version.h> #include <libavcodec/avcodec.h> +#include <libavcodec/version.h> #include <libavformat/avformat.h> +#include <libavformat/version.h> #include <libswresample/swresample.h> +#include <libswresample/version.h> #include <libswscale/swscale.h> +#include <libswscale/version.h> #include <libavfilter/avfilter.h> +#include <libavfilter/version.h> #if HAVE_LIBAVDEVICE #include <libavdevice/avdevice.h> |