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

Git pushed a commit to branch master
in repository ffmpeg.

commit 064ef84cb857e03e277dc63c5bd051dba8389f44
Author:     Wu Jianhua <[email protected]>
AuthorDate: Sun Sep 6 12:08:56 2026 +0800
Commit:     jianhuaw <[email protected]>
CommitDate: Sun Nov 29 10:42:10 2026 +0000

    avcodec/vvc_parser: report 12-bit pixel formats
    
    Signed-off-by: Wu Jianhua <[email protected]>
---
 libavcodec/vvc_parser.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libavcodec/vvc_parser.c b/libavcodec/vvc_parser.c
index 85510ff1f6..2f260c5426 100644
--- a/libavcodec/vvc_parser.c
+++ b/libavcodec/vvc_parser.c
@@ -68,6 +68,11 @@ static const enum AVPixelFormat pix_fmts_10bit[] = {
     AV_PIX_FMT_YUV422P10, AV_PIX_FMT_YUV444P10
 };
 
+static const enum AVPixelFormat pix_fmts_12bit[] = {
+    AV_PIX_FMT_GRAY12, AV_PIX_FMT_YUV420P12,
+    AV_PIX_FMT_YUV422P12, AV_PIX_FMT_YUV444P12
+};
+
 static int get_format(const H266RawSPS *sps)
 {
     switch (sps->sps_bitdepth_minus8) {
@@ -75,6 +80,8 @@ static int get_format(const H266RawSPS *sps)
         return pix_fmts_8bit[sps->sps_chroma_format_idc];
     case 2:
         return pix_fmts_10bit[sps->sps_chroma_format_idc];
+    case 4:
+        return pix_fmts_12bit[sps->sps_chroma_format_idc];
     }
     return AV_PIX_FMT_NONE;
 }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to