avfilter/vsrc_sierpinski: rename misleading variable

release/5.1
Paul B Mahol 3 years ago
parent 89083142fa
commit d57a213998
  1. 12
      libavfilter/vsrc_sierpinski.c

@ -137,18 +137,18 @@ static int draw_carpet_slice(AVFilterContext *ctx, void *arg, int job, int nb_jo
return 0;
}
static int config_output(AVFilterLink *inlink)
static int config_output(AVFilterLink *outlink)
{
AVFilterContext *ctx = inlink->src;
AVFilterContext *ctx = outlink->src;
SierpinskiContext *s = ctx->priv;
if (av_image_check_size(s->w, s->h, 0, ctx) < 0)
return AVERROR(EINVAL);
inlink->w = s->w;
inlink->h = s->h;
inlink->time_base = av_inv_q(s->frame_rate);
inlink->sample_aspect_ratio = (AVRational) {1, 1};
outlink->w = s->w;
outlink->h = s->h;
outlink->time_base = av_inv_q(s->frame_rate);
outlink->sample_aspect_ratio = (AVRational) {1, 1};
if (s->seed == -1)
s->seed = av_get_random_seed();
av_lfg_init(&s->lfg, s->seed);

Loading…
Cancel
Save