History

avfilter/vf_yadif: rename config_props -> config_output, link -> outlink

Limin Wang committed 6 years ago

Commit c1ed00f1 parent ff5c8e51 file · +10 −10Browse files

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

Unified · Split

libavfilter/vf_yadif.c+10−10
@@ -311,26 +311,26 @@ static int query_formats(AVFilterContext *ctx) · 310 unmodified lines
311311 return ff_set_common_formats(ctx, fmts_list);
312312 }
313313
314−static int config_props(AVFilterLink *link)
314+static int config_output(AVFilterLink *outlink)
315315 {
316− AVFilterContext *ctx = link->src;
316+ AVFilterContext *ctx = outlink->src;
317317 YADIFContext *s = ctx->priv;
318318
319− link->time_base.num = ctx->inputs[0]->time_base.num;
320− link->time_base.den = ctx->inputs[0]->time_base.den * 2;
321− link->w = ctx->inputs[0]->w;
322− link->h = ctx->inputs[0]->h;
319+ outlink->time_base.num = ctx->inputs[0]->time_base.num;
320+ outlink->time_base.den = ctx->inputs[0]->time_base.den * 2;
321+ outlink->w = ctx->inputs[0]->w;
322+ outlink->h = ctx->inputs[0]->h;
323323
324324 if(s->mode & 1)
325− link->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,
325+ outlink->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,
326326 (AVRational){2, 1});
327327
328− if (link->w < 3 || link->h < 3) {
328+ if (outlink->w < 3 || outlink->h < 3) {
329329 av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or lines is not supported\n");
330330 return AVERROR(EINVAL);
331331 }
332332
333− s->csp = av_pix_fmt_desc_get(link->format);
333+ s->csp = av_pix_fmt_desc_get(outlink->format);
334334 s->filter = filter;
335335 if (s->csp->comp[0].depth > 8) {
336336 s->filter_line = filter_line_c_16bit;
@@ -369,7 +369,7 @@ static const AVFilterPad avfilter_vf_yadif_outputs[] = { · 32 unmodified lines
369369 .name = "default",
370370 .type = AVMEDIA_TYPE_VIDEO,
371371 .request_frame = ff_yadif_request_frame,
372− .config_props = config_props,
372+ .config_props = config_output,
373373 },
374374 { NULL }
375375 };

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