---
libavcodec/dxva2.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index 9ceb6236d..e4ec61cec 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -30,6 +30,7 @@
#include "avcodec.h"
#include "dxva2_internal.h"
+#include "hwaccel.h"
/* define all the GUIDs used directly here,
to avoid problems with inconsistent dxva2api.h versions in mingw-w64 and
different MSVC version */
@@ -658,6 +659,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