@ -70,7 +70,6 @@ typedef union {
# if CONFIG_D3D11VA && CONFIG_DXVA2
# define DXVA_CONTEXT_WORKAROUND(avctx, ctx) (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD ? ctx->d3d11va.workaround : ctx->dxva2.workaround)
# define DXVA_CONTEXT_COUNT(avctx, ctx) (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD ? ctx->d3d11va.surface_count : ctx->dxva2.surface_count)
# define DXVA_CONTEXT_SURFACE(avctx, ctx, i) (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD ? ctx->d3d11va.surface[i] : ctx->dxva2.surface[i])
# define DXVA_CONTEXT_DECODER(avctx, ctx) (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD ? ctx->d3d11va.decoder : ctx->dxva2.decoder)
# define DXVA_CONTEXT_REPORT_ID(avctx, ctx) (*(avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD ? &ctx->d3d11va.report_id : &ctx->dxva2.report_id))
# define DXVA_CONTEXT_CFG(avctx, ctx) (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD ? ctx->d3d11va.cfg : ctx->dxva2.cfg)
@ -80,7 +79,6 @@ typedef union {
# elif CONFIG_DXVA2
# define DXVA_CONTEXT_WORKAROUND(avctx, ctx) (ctx->dxva2.workaround)
# define DXVA_CONTEXT_COUNT(avctx, ctx) (ctx->dxva2.surface_count)
# define DXVA_CONTEXT_SURFACE(avctx, ctx, i) (ctx->dxva2.surface[i])
# define DXVA_CONTEXT_DECODER(avctx, ctx) (ctx->dxva2.decoder)
# define DXVA_CONTEXT_REPORT_ID(avctx, ctx) (*(&ctx->dxva2.report_id))
# define DXVA_CONTEXT_CFG(avctx, ctx) (ctx->dxva2.cfg)
@ -90,7 +88,6 @@ typedef union {
# elif CONFIG_D3D11VA
# define DXVA_CONTEXT_WORKAROUND(avctx, ctx) (ctx->d3d11va.workaround)
# define DXVA_CONTEXT_COUNT(avctx, ctx) (ctx->d3d11va.surface_count)
# define DXVA_CONTEXT_SURFACE(avctx, ctx, i) (ctx->d3d11va.surface[i])
# define DXVA_CONTEXT_DECODER(avctx, ctx) (ctx->d3d11va.decoder)
# define DXVA_CONTEXT_REPORT_ID(avctx, ctx) (*(&ctx->d3d11va.report_id))
# define DXVA_CONTEXT_CFG(avctx, ctx) (ctx->d3d11va.cfg)