diff --git a/libavcodec/d3d12va_vc1.c b/libavcodec/d3d12va_vc1.c
index 3d15abd1f1..c0ea6c4b2a 100644
|
a
|
b
|
static int d3d12va_vc1_end_frame(AVCodecContext *avctx)
|
| 171 | 171 | |
| 172 | 172 | static int d3d12va_vc1_decode_init(AVCodecContext *avctx) |
| 173 | 173 | { |
| | 174 | int ret; |
| 174 | 175 | D3D12VADecodeContext *ctx = D3D12VA_DECODE_CONTEXT(avctx); |
| 175 | | ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_VC1; |
| | 176 | ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_VC1_D2010; |
| 176 | 177 | |
| 177 | 178 | ctx->max_num_ref = 3; |
| 178 | 179 | |
| 179 | | return ff_d3d12va_decode_init(avctx); |
| | 180 | ret = ff_d3d12va_decode_init(avctx); |
| | 181 | if (ret < 0) { |
| | 182 | ctx->cfg.DecodeProfile = D3D12_VIDEO_DECODE_PROFILE_VC1; |
| | 183 | ret = ff_d3d12va_decode_init(avctx); |
| | 184 | } |
| | 185 | |
| | 186 | return ret; |
| 180 | 187 | } |
| 181 | 188 | |
| 182 | 189 | #if CONFIG_WMV3_D3D12VA_HWACCEL |