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

Git pushed a commit to branch master
in repository ffmpeg.

commit ef2ce57c315955b584dc469ba9ff269f6778b986
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Dec 5 18:28:10 2025 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Tue Dec 9 09:47:48 2025 +0000

    swscale/format: exclude U32 from sws_pixel_type()
    
    This function is supposed to give us representable pixel types; but U32 is 
not
    representable (due only to the AVRational range limit).
---
 libswscale/format.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libswscale/format.c b/libswscale/format.c
index cbb5cb35fe..f9a156e29e 100644
--- a/libswscale/format.c
+++ b/libswscale/format.c
@@ -616,12 +616,13 @@ static SwsPixelType fmt_pixel_type(enum AVPixelFormat fmt)
     if (desc->flags & AV_PIX_FMT_FLAG_FLOAT) {
         switch (bits) {
         case 32: return SWS_PIXEL_F32;
+        /* TODO: no support for 16-bit float yet */
         }
     } else {
         switch (bits) {
         case  8: return SWS_PIXEL_U8;
         case 16: return SWS_PIXEL_U16;
-        case 32: return SWS_PIXEL_U32;
+        /* TODO: AVRational cannot represent UINT32_MAX */
         }
     }
 

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

Reply via email to