summaryrefslogtreecommitdiffstats
path: root/libavcodec/dxva2.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-25 22:24:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-25 22:24:40 +0200
commit94d07b314aa516284cc21ea720d4a305f881b6c2 (patch)
tree9bc4708b46f22086bf350388a64d9a179402c1a5 /libavcodec/dxva2.c
parent947b74ee7da7984b666a478164917e42d4f4592d (diff)
downloadffmpeg-streaming-94d07b314aa516284cc21ea720d4a305f881b6c2.zip
ffmpeg-streaming-94d07b314aa516284cc21ea720d4a305f881b6c2.tar.gz
avcodec/dxva2: Fix build without D3D11
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dxva2.c')
-rw-r--r--libavcodec/dxva2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index 4776079..eb8959e 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -132,7 +132,9 @@ 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
DXVA2_DecodeBufferDesc buffer2[4];
DECODER_BUFFER_DESC *buffer,*buffer_slice;
int result, runs = 0;
OpenPOWER on IntegriCloud