aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_scdet.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-01-17 18:01:02 +0100
committerPaul B Mahol <onemda@gmail.com>2023-01-17 18:03:14 +0100
commit07485a697552641609df73fd411de1ea964f1ef2 (patch)
treee58b96ab08608303f49b29de6574577f4a0a4448 /libavfilter/vf_scdet.c
parent11b02fc675bc2a4b98001c0f64fbcd45758077d9 (diff)
downloadffmpeg-07485a697552641609df73fd411de1ea964f1ef2.tar.gz
avfilter/vf_scdet: change threshold checking
Also allow score to match threshold thus allowing ==0.0 scores.
Diffstat (limited to 'libavfilter/vf_scdet.c')
-rw-r--r--libavfilter/vf_scdet.c2
1 files changed, 1 insertions, 1 deletions
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",