aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-06-01 12:16:51 +0300
committerMartin Storsjö <martin@martin.st>2015-06-01 23:04:46 +0300
commit172b2cee17a3779c114ba065dd7b25dcf61e408f (patch)
tree0bbb8e0174a6084e6a7532487bb402bd89e56bd4 /libavcodec
parent28fa58cf5d939151108345d7ddddebbd51d9b684 (diff)
downloadffmpeg-172b2cee17a3779c114ba065dd7b25dcf61e408f.tar.gz
dxva2: Add ifdefs around structs that might not be available
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dxva2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index 76a9d54a27..d4ac98d078 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -132,8 +132,12 @@ int ff_dxva2_common_end_frame(AVCodecContext *avctx, AVFrame *frame,
{
AVDXVAContext *ctx = avctx->hwaccel_context;
unsigned buffer_count = 0;
+#if CONFIG_D3D11VA
D3D11_VIDEO_DECODER_BUFFER_DESC buffer11[4];
+#endif
+#if CONFIG_DXVA2
DXVA2_DecodeBufferDesc buffer2[4];
+#endif
DECODER_BUFFER_DESC *buffer,*buffer_slice;
int result, runs = 0;
HRESULT hr;