Commit 2f1e5761d8 for ffmpeg
commit 2f1e5761d89a31350bed3d33817508f83b2f48f9
Author: Ramiro Polla <ramiro.polla@gmail.com>
Date: Wed Nov 4 19:26:51 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 <noreply@anthropic.com>
Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
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);