Commit 07485a69 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_scdet: change threshold checking

Also allow score to match threshold thus allowing ==0.0 scores.
parent 11b02fc6
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment