History

avfilter/vf_scdet: change threshold checking

Also allow score to match threshold thus allowing ==0.0 scores.

Paul B Mahol committed 3 years ago

Commit 07485a61 parent 11b02fc1 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_scdet.c+1−1
@@ -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",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t