avfilter/vf_scdet: use AVFilterContext for logging
This commit is contained in:
@@ -164,7 +164,7 @@ static int activate(AVFilterContext *ctx)
|
|||||||
set_meta(s, frame, "lavfi.scd.score", buf);
|
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",
|
av_log(ctx, AV_LOG_INFO, "lavfi.scd.score: %.3f, lavfi.scd.time: %s\n",
|
||||||
s->scene_score, av_ts2timestr(frame->pts, &inlink->time_base));
|
s->scene_score, av_ts2timestr(frame->pts, &inlink->time_base));
|
||||||
set_meta(s, frame, "lavfi.scd.time",
|
set_meta(s, frame, "lavfi.scd.time",
|
||||||
av_ts2timestr(frame->pts, &inlink->time_base));
|
av_ts2timestr(frame->pts, &inlink->time_base));
|
||||||
|
|||||||
Reference in New Issue
Block a user