--- ./libavcodec/hevc/hevcdec.c	2026-03-16 18:13:04.000000000 +0000
+++ ./libavcodec/hevc/hevcdec.c.new	2026-05-09 05:22:45.098799320 +0000
@@ -712,9 +712,11 @@
         break;
     }
 
+        
     if (alpha_fmt != AV_PIX_FMT_NONE)
         *fmt++ = alpha_fmt;
-    *fmt++ = sps->pix_fmt;
+    if(alpha_fmt == AV_PIX_FMT_NONE)
+        *fmt++ = sps->pix_fmt;
     *fmt = AV_PIX_FMT_NONE;
 
     // export multilayer information from active VPS to the caller,
