---
libavcodec/dxva2.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index 9ceb6236d..f7d8c1842 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -658,6 +658,10 @@ int ff_dxva2_decode_init(AVCodecContext *avctx)
dxva_adjust_hwframes(avctx, frames_ctx);
+ ret = ff_init_hw_frames(avctx);
+ if (ret < 0)
+ goto fail;
+
ret = av_hwframe_ctx_init(avctx->hw_frames_ctx);
if (ret < 0)
goto fail;
--
2.11.0
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel