Also allow score to match threshold thus allowing ==0.0 scores.
Unified · Split
| @@ -163,7 +163,7 @@ static int activate(AVFilterContext *ctx) · 162 unmodified lines | |||
| 163 | snprintf(buf, sizeof(buf), "%0.3f", s->scene_score); | 163 | snprintf(buf, sizeof(buf), "%0.3f", s->scene_score); |
| 164 | set_meta(s, frame, "lavfi.scd.score", buf); | 164 | set_meta(s, frame, "lavfi.scd.score", buf); |
| 165 | 165 | ||
| 166 | if (s->scene_score > s->threshold) { | 166 | if (s->scene_score >= s->threshold) { |
| 167 | av_log(s, AV_LOG_INFO, "lavfi.scd.score: %.3f, lavfi.scd.time: %s\n", | 167 | av_log(s, AV_LOG_INFO, "lavfi.scd.score: %.3f, lavfi.scd.time: %s\n", |
| 168 | s->scene_score, av_ts2timestr(frame->pts, &inlink->time_base)); | 168 | s->scene_score, av_ts2timestr(frame->pts, &inlink->time_base)); |
| 169 | set_meta(s, frame, "lavfi.scd.time", | 169 | set_meta(s, frame, "lavfi.scd.time", |