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

Git pushed a commit to branch master
in repository ffmpeg.

commit 2f1e5761d89a31350bed3d33817508f83b2f48f9
Author:     Ramiro Polla <[email protected]>
AuthorDate: Wed Nov 4 19:26:51 2026 +0100
Commit:     Ramiro Polla <[email protected]>
CommitDate: Fri Nov 6 18:20:22 2026 +0100

    swscale/utils: remove the float exception from the unscaled range check
    
    It allowed the gray8 <-> grayf32 unscaled converters to be used while
    grayf32 was treated as limited range. Float gray formats are now always
    full range, like gray8, so the range check passes on its own.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Ramiro Polla <[email protected]>
---
 libswscale/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/utils.c b/libswscale/utils.c
index eaa352a30c..6aabce39ab 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -1700,7 +1700,7 @@ av_cold int ff_sws_init_single_context(SwsContext *sws, 
SwsFilter *srcFilter,
     /* unscaled special cases */
     if (unscaled && !usesHFilter && !usesVFilter &&
         (sws->src_range == sws->dst_range || isAnyRGB(dstFormat) ||
-         isFloat(srcFormat) || isFloat(dstFormat) || isBayer(srcFormat))){
+         isBayer(srcFormat))){
 
         ff_get_unscaled_swscale(c);
 

-- 
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