This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 9ee7e00bfa9be83d72c572c017030d1b8e5212e4 Author: Niklas Haas <[email protected]> AuthorDate: Mon Aug 17 13:08:41 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Tue Sep 1 13:15:06 2026 +0200 avfilter/vf_colordetect: increase threshold default to 0.001 I split this off from the commit adding the option to distinguish between the change in code (which should be a no-op by default) and the change in behavior (which is a deliberate deviation) when bisecting. 0.001 = 0.1% permits just one 10-bit code point of deviation, while requiring tight bounds for 8-bit content. Sponsored-by: nxtedition AB Signed-off-by: Niklas Haas <[email protected]> --- doc/filters.texi | 2 +- libavfilter/vf_colordetect.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 4cd673eae0..b7379d3060 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -9960,7 +9960,7 @@ Enable detection of all of the above properties. This is the default. @item threshold Allow pixels to exceed the expected bounds by this fraction of the full scale value range before treating it as evidence of (respectively) full range or -straight alpha. Value range is from 0 to 0.05. Defaults to 0.0. +straight alpha. Value range is from 0 to 0.05. Defaults to 0.001 (=0.1%). @end table @section colorize diff --git a/libavfilter/vf_colordetect.c b/libavfilter/vf_colordetect.c index 3750b7d86a..4fffaa4968 100644 --- a/libavfilter/vf_colordetect.c +++ b/libavfilter/vf_colordetect.c @@ -78,7 +78,7 @@ static const AVOption colordetect_options[] = { { "all", "Detect all supported properties", 0, AV_OPT_TYPE_CONST, {.i64 = -1}, 0, 0, FLAGS, .unit = "mode" }, /* Note: threshold should not be increased past ~0.4 as it overflows 8-bit SIMD otherwise */ - { "threshold", "Detection threshold, as a fraction of the full range", OFFSET(threshold), AV_OPT_TYPE_FLOAT, {.dbl = 0.0}, 0.0, 0.05, FLAGS }, + { "threshold", "Detection threshold, as a fraction of the full range", OFFSET(threshold), AV_OPT_TYPE_FLOAT, {.dbl = 0.001}, 0.0, 0.05, FLAGS }, { NULL } }; -- 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]
