summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-05-04 01:17:06 +0200
committerwm4 <wm4@nowhere>2017-05-04 02:12:10 +0200
commit1cab4b607585d5c1255cb6c4d572610d7ccfb99c (patch)
treeecb09951493326a3dfe4b3adfa6391acb1402d0d
parent1143f2877a70c8aa3f0b44e746360215e470dd56 (diff)
downloadmpv-1cab4b607585d5c1255cb6c4d572610d7ccfb99c.tar.bz2
mpv-1cab4b607585d5c1255cb6c4d572610d7ccfb99c.tar.xz
d3d: fix build with Libav
Apparently it has been broken since forever?
-rw-r--r--video/decode/hw_d3d11va.c1
-rw-r--r--video/decode/hw_dxva2.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/video/decode/hw_d3d11va.c b/video/decode/hw_d3d11va.c
index bb59034ab0..78d81c2acb 100644
--- a/video/decode/hw_d3d11va.c
+++ b/video/decode/hw_d3d11va.c
@@ -16,6 +16,7 @@
*/
#include <libavcodec/d3d11va.h>
+#include <libavutil/mem.h>
#include "lavc.h"
#include "common/common.h"
diff --git a/video/decode/hw_dxva2.c b/video/decode/hw_dxva2.c
index 7be0d9b9fa..b2ba562cea 100644
--- a/video/decode/hw_dxva2.c
+++ b/video/decode/hw_dxva2.c
@@ -21,6 +21,7 @@
#define DXVA2API_USE_BITFIELDS
#include <libavcodec/dxva2.h>
+#include <libavutil/common.h>
#include "lavc.h"
#include "common/common.h"