[FFmpeg-devel] [PATCH] avcodec/cuviddec: Fix missing HW_CONFIG_METHOD_HW_FRAMES_CTX flag
Zhao Zhili
quinkblack at foxmail.com
Wed Dec 18 09:13:19 EET 2024
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
},
--
2.46.0
More information about the ffmpeg-devel
mailing list