From 07485a697552641609df73fd411de1ea964f1ef2 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 17 Jan 2023 18:01:02 +0100 Subject: [PATCH] avfilter/vf_scdet: change threshold checking Also allow score to match threshold thus allowing ==0.0 scores. --- libavfilter/vf_scdet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_scdet.c b/libavfilter/vf_scdet.c index 1576759c24..daddc2e665 100644 --- a/libavfilter/vf_scdet.c +++ b/libavfilter/vf_scdet.c @@ -163,7 +163,7 @@ static int activate(AVFilterContext *ctx) snprintf(buf, sizeof(buf), "%0.3f", s->scene_score); set_meta(s, frame, "lavfi.scd.score", buf); - if (s->scene_score > s->threshold) { + if (s->scene_score >= s->threshold) { av_log(s, AV_LOG_INFO, "lavfi.scd.score: %.3f, lavfi.scd.time: %s\n", s->scene_score, av_ts2timestr(frame->pts, &inlink->time_base)); set_meta(s, frame, "lavfi.scd.time",