mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-11 03:32:39 +00:00
dxva2: Add ifdefs around structs that might not be available
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
28fa58cf5d
commit
172b2cee17
@ -132,8 +132,12 @@ int ff_dxva2_common_end_frame(AVCodecContext *avctx, AVFrame *frame,
|
|||||||
{
|
{
|
||||||
AVDXVAContext *ctx = avctx->hwaccel_context;
|
AVDXVAContext *ctx = avctx->hwaccel_context;
|
||||||
unsigned buffer_count = 0;
|
unsigned buffer_count = 0;
|
||||||
|
#if CONFIG_D3D11VA
|
||||||
D3D11_VIDEO_DECODER_BUFFER_DESC buffer11[4];
|
D3D11_VIDEO_DECODER_BUFFER_DESC buffer11[4];
|
||||||
|
#endif
|
||||||
|
#if CONFIG_DXVA2
|
||||||
DXVA2_DecodeBufferDesc buffer2[4];
|
DXVA2_DecodeBufferDesc buffer2[4];
|
||||||
|
#endif
|
||||||
DECODER_BUFFER_DESC *buffer,*buffer_slice;
|
DECODER_BUFFER_DESC *buffer,*buffer_slice;
|
||||||
int result, runs = 0;
|
int result, runs = 0;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
Loading…
Reference in New Issue
Block a user