[FFmpeg-devel] [PATCH] lavc/qsvdec: fix the regression on linux for init_hw_device
Li, Zhong
zhong.li at intel.com
Tue Sep 3 13:18:05 EEST 2019
> diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index eef4fe7..319b549
> 100644
> --- a/libavcodec/qsvdec.c
> +++ b/libavcodec/qsvdec.c
> @@ -46,6 +46,7 @@ const AVCodecHWConfigInternal *ff_qsv_hw_configs[] = {
> .public = {
> .pix_fmt = AV_PIX_FMT_QSV,
> .methods = AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX |
> + AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX |
AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX means we can support AV_PIX_FMT_QSV by AVCodecContext.hw_device_ctx
This is not supported for qsv now.
And even if it is supported, there is no business of system memory frame, just means output AV_PIX_FMT_QSV format frame created by hw_device_ctx.
> AV_CODEC_HW_CONFIG_METHOD_AD_HOC,
> .device_type = AV_HWDEVICE_TYPE_QSV,
> },
> --
> 2.7.4
Probably we need to add MFXVideoCORE_SetHandle() function for system memory output path, which is removed by 1f26a231bb065276cd80ce02957c759f3197edfa.
I will try to give a patch to fix it ASAP.
More information about the ffmpeg-devel
mailing list