This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 74db061f0a4c75722c5d63c8ac8a63aac1bd0f29
Author:     Diego de Souza <[email protected]>
AuthorDate: Wed Jun 24 00:30:45 2026 +0200
Commit:     Timo Rothenpieler <[email protected]>
CommitDate: Tue Jun 23 23:58:45 2026 +0000

    avutil/hwcontext_cuda: add P012 and P212 to supported formats
    
    NVDEC and CUVID decode 12-bit 4:2:0 content to AV_PIX_FMT_P012 and
    12-bit 4:2:2 to AV_PIX_FMT_P212, but these formats were missing from
    the CUDA frames context supported format list. As a result
    av_hwframe_ctx_init() rejected them ("Pixel format not supported",
    AVERROR(ENOSYS)), so decoding 12-bit content to CUDA frames and
    hwdownload of such frames both failed.
    
    Add P012 and P212 next to the existing P010/P016 and P210/P216 entries.
    The per-plane device transfer is derived generically from the pixel
    descriptor, so no other changes are required.
    
    Signed-off-by: Diego de Souza <[email protected]>
---
 libavutil/hwcontext_cuda.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
index b0b65b2446..c57ea4bb7a 100644
--- a/libavutil/hwcontext_cuda.c
+++ b/libavutil/hwcontext_cuda.c
@@ -47,8 +47,10 @@ static const enum AVPixelFormat supported_formats[] = {
     AV_PIX_FMT_YUVA420P,
     AV_PIX_FMT_YUV444P,
     AV_PIX_FMT_P010,
+    AV_PIX_FMT_P012,
     AV_PIX_FMT_P016,
     AV_PIX_FMT_P210,
+    AV_PIX_FMT_P212,
     AV_PIX_FMT_P216,
     AV_PIX_FMT_YUV422P,
     AV_PIX_FMT_YUV420P10,

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to