[FFmpeg-devel] [PATCH] avcodec/cuviddec: Fix missing HW_CONFIG_METHOD_HW_FRAMES_CTX flag
Timo Rothenpieler
timo at rothenpieler.org
Sat Jan 11 17:37:29 EET 2025
On 18.12.2024 08:13, Zhao Zhili wrote:
> From: Zhao Zhili <zhilizhao at tencent.com>
>
> ---
> libavcodec/cuviddec.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c
> index 3fae9c12eb..502bcc7fc2 100644
> --- a/libavcodec/cuviddec.c
> +++ b/libavcodec/cuviddec.c
> @@ -1162,6 +1162,7 @@ static const AVCodecHWConfigInternal *const cuvid_hw_configs[] = {
> .public = {
> .pix_fmt = AV_PIX_FMT_CUDA,
> .methods = AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX |
> + AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX |
> AV_CODEC_HW_CONFIG_METHOD_INTERNAL,
> .device_type = AV_HWDEVICE_TYPE_CUDA
> },
LGTM
More information about the ffmpeg-devel
mailing list