This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 0b91b5a5e4cf660d0c7fd894348904d376fd43de Author: Niklas Haas <[email protected]> AuthorDate: Wed Mar 18 16:44:20 2026 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Sat Mar 28 18:50:14 2026 +0100 swscale/ops_backend: remove unused/wrong #define PIXEL_MIN is either useless (int) or wrong (float); should be -FLT_MAX rather than FLT_MIN, if the intent is to capture the most negative possible value. Just remove it since we don't actually need it for anything. Signed-off-by: Niklas Haas <[email protected]> --- libswscale/ops_tmpl_float.c | 2 -- libswscale/ops_tmpl_int.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/libswscale/ops_tmpl_float.c b/libswscale/ops_tmpl_float.c index ea5d3cf3d0..bfec4a287b 100644 --- a/libswscale/ops_tmpl_float.c +++ b/libswscale/ops_tmpl_float.c @@ -29,7 +29,6 @@ #if BIT_DEPTH == 32 # define PIXEL_TYPE SWS_PIXEL_F32 # define PIXEL_MAX FLT_MAX -# define PIXEL_MIN FLT_MIN # define pixel_t float # define block_t f32block_t # define px f32 @@ -262,7 +261,6 @@ static const SwsOpTable fn(op_table_float) = { #undef PIXEL_TYPE #undef PIXEL_MAX -#undef PIXEL_MIN #undef pixel_t #undef block_t #undef px diff --git a/libswscale/ops_tmpl_int.c b/libswscale/ops_tmpl_int.c index d9870faf34..9d335c904f 100644 --- a/libswscale/ops_tmpl_int.c +++ b/libswscale/ops_tmpl_int.c @@ -53,7 +53,6 @@ #define IS_FLOAT 0 #define FMT_CHAR u -#define PIXEL_MIN 0 #include "ops_tmpl_common.c" DECL_READ(read_planar, const int elems) @@ -586,7 +585,6 @@ static const SwsOpTable fn(op_table_int) = { #undef PIXEL_TYPE #undef PIXEL_MAX -#undef PIXEL_MIN #undef SWAP_BYTES #undef pixel_t #undef block_t _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
