[FFmpeg-devel] [PATCH 3/3] lavu/hwcontext_qsv: Make sure hardware vendor is Intel for qsv on d3d11va

Anton Khirnov anton at khirnov.net
Sun Nov 26 12:51:36 EET 2023


Quoting Xiang, Haihao (2023-11-24 06:43:48)
> From: Haihao Xiang <haihao.xiang at intel.com>
> 
> When multiple hardware are available, the default one might not be
> Intel Hareware. We can use option vendor_id to choose the required
> vendor.
> 
> Tested-by: Artem Galin <artem.galin at intel.com>
> Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>
> ---
>  libavutil/hwcontext_qsv.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
> index 1bfda9e69b..7a9cd0cc37 100644
> --- a/libavutil/hwcontext_qsv.c
> +++ b/libavutil/hwcontext_qsv.c
> @@ -2200,6 +2200,12 @@ static int qsv_device_create(AVHWDeviceContext *ctx, const char *device,
>  #endif
>  #if CONFIG_D3D11VA
>      case AV_HWDEVICE_TYPE_D3D11VA:
> +        {

Useless braces.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list