|
|
@ -933,7 +933,8 @@ static int qsv_decode(AVCodecContext *avctx, QSVContext *q, |
|
|
|
frame->pict_type = ff_qsv_map_pictype(aframe.frame->dec_info.FrameType); |
|
|
|
frame->pict_type = ff_qsv_map_pictype(aframe.frame->dec_info.FrameType); |
|
|
|
|
|
|
|
|
|
|
|
if (avctx->codec_id == AV_CODEC_ID_H264 || |
|
|
|
if (avctx->codec_id == AV_CODEC_ID_H264 || |
|
|
|
avctx->codec_id == AV_CODEC_ID_HEVC) { |
|
|
|
avctx->codec_id == AV_CODEC_ID_HEVC || |
|
|
|
|
|
|
|
avctx->codec_id == AV_CODEC_ID_VVC) { |
|
|
|
if (aframe.frame->dec_info.FrameType & MFX_FRAMETYPE_IDR) |
|
|
|
if (aframe.frame->dec_info.FrameType & MFX_FRAMETYPE_IDR) |
|
|
|
frame->flags |= AV_FRAME_FLAG_KEY; |
|
|
|
frame->flags |= AV_FRAME_FLAG_KEY; |
|
|
|
else |
|
|
|
else |
|
|
@ -1300,3 +1301,7 @@ DEFINE_QSV_DECODER(vp9, VP9, NULL) |
|
|
|
#if CONFIG_AV1_QSV_DECODER |
|
|
|
#if CONFIG_AV1_QSV_DECODER |
|
|
|
DEFINE_QSV_DECODER(av1, AV1, NULL) |
|
|
|
DEFINE_QSV_DECODER(av1, AV1, NULL) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_VVC_QSV_DECODER |
|
|
|
|
|
|
|
DEFINE_QSV_DECODER(vvc, VVC, NULL) |
|
|
|
|
|
|
|
#endif |
|
|
|