summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-31 14:12:11 +0100
committerwm4 <wm4@nowhere>2017-10-31 14:12:11 +0100
commitff093e5b7816f6e23fd6d4e9e4f9f54444ad63ac (patch)
tree3ab880f86abf7f87fda1d2427325806b13b354f2
parent0b8b64fba312d53ae72974618e2e7f191afa0d00 (diff)
downloadmpv-ff093e5b7816f6e23fd6d4e9e4f9f54444ad63ac.tar.bz2
mpv-ff093e5b7816f6e23fd6d4e9e4f9f54444ad63ac.tar.xz
vd_lavc: makre sure required headers are included early enough
Should fix #5062.
-rw-r--r--video/decode/lavc.h1
-rw-r--r--video/decode/vd_lavc.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h
index 5795af3ecf..f3cebd0f20 100644
--- a/video/decode/lavc.h
+++ b/video/decode/lavc.h
@@ -5,6 +5,7 @@
#include <pthread.h>
#include <libavcodec/avcodec.h>
+#include <libavutil/hwcontext.h>
#include "config.h"
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index d146270062..824eb12a11 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -24,7 +24,6 @@
#include <libavutil/common.h>
#include <libavutil/opt.h>
-#include <libavutil/hwcontext.h>
#include <libavutil/intreadwrite.h>
#include <libavutil/pixdesc.h>