Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-10-05 12:18:31 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2015-10-05 12:18:31 +0300
commit0cd8170dd2b5aa274707aace60a9807ffcff3825 (patch)
tree044aa761e659f111d2d058036034947d14c8a354 /libavcodec/d3d11va.c
parentac830e9b489b77d42e11599cbaf588139781da73 (diff)
parentbb198c4997d5036f3bf91de51e44f807115677d0 (diff)
Merge commit 'bb198c4997d5036f3bf91de51e44f807115677d0'
* commit 'bb198c4997d5036f3bf91de51e44f807115677d0': d3d11va: make av_d3d11va_alloc_context() available at all times Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavcodec/d3d11va.c')
-rw-r--r--libavcodec/d3d11va.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/d3d11va.c b/libavcodec/d3d11va.c
index 7ecda22d37..9967f322c9 100644
--- a/libavcodec/d3d11va.c
+++ b/libavcodec/d3d11va.c
@@ -23,6 +23,8 @@
#include <stddef.h>
#include "config.h"
+
+#if CONFIG_D3D11VA
#include "libavutil/error.h"
#include "libavutil/mem.h"
@@ -36,3 +38,11 @@ AVD3D11VAContext *av_d3d11va_alloc_context(void)
res->context_mutex = INVALID_HANDLE_VALUE;
return res;
}
+#else
+struct AVD3D11VAContext *av_d3d11va_alloc_context(void);
+
+struct AVD3D11VAContext *av_d3d11va_alloc_context(void)
+{
+ return NULL;
+}
+#endif /* CONFIG_D3D11VA */