diff options
author | wm4 <wm4@nowhere> | 2013-09-25 22:22:02 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-25 22:22:02 +0200 |
commit | 200fb7eceb5430c0433e09b815fd13a93ded2a8a (patch) | |
tree | 53e513fd74e9266d559ecd768cd98b1eda19e91f /video/out/vo_vaapi.c | |
parent | 72fbd846db3bf446b3fa00eba4f0197e6214f942 (diff) | |
download | mpv-200fb7eceb5430c0433e09b815fd13a93ded2a8a.tar.bz2 mpv-200fb7eceb5430c0433e09b815fd13a93ded2a8a.tar.xz |
vaapi: fix compilation with Libav
The code using FFSWAP was moved from vo_vaapi.c to vaapi.c, which didn't
include libavutil/common.h anymore, just libavutil/avutil.h. The header
avutil.h doesn't include common.h recursively in Libav, so it broke
there.
Add FFSWAP as MPSWAP in mp_common.h (copy pasted from ffmpeg) to make
sure this doesn't happen again. (This kind of stuff happens all too
often, so screw libavutil.)
Diffstat (limited to 'video/out/vo_vaapi.c')
-rw-r--r-- | video/out/vo_vaapi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c index dd7f138a24..68fb09ff9b 100644 --- a/video/out/vo_vaapi.c +++ b/video/out/vo_vaapi.c @@ -27,9 +27,6 @@ #include <X11/Xutil.h> #include <va/va_x11.h> -#include <libavutil/common.h> -#include <libavcodec/vaapi.h> - #include "config.h" #include "mpvcore/mp_msg.h" #include "video/out/vo.h" |