1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

avfilter/vsrc_gradients: rename misleading variable

This commit is contained in:
Paul B Mahol 2022-03-25 17:48:25 +01:00
parent 75929ed62b
commit a45b71570a

View File

@ -281,19 +281,19 @@ static int draw_gradients_slice32_planar(AVFilterContext *ctx, void *arg, int jo
return 0; return 0;
} }
static int config_output(AVFilterLink *inlink) static int config_output(AVFilterLink *outlink)
{ {
AVFilterContext *ctx = inlink->src; AVFilterContext *ctx = outlink->src;
GradientsContext *s = ctx->priv; GradientsContext *s = ctx->priv;
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format); const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(outlink->format);
if (av_image_check_size(s->w, s->h, 0, ctx) < 0) if (av_image_check_size(s->w, s->h, 0, ctx) < 0)
return AVERROR(EINVAL); return AVERROR(EINVAL);
inlink->w = s->w; outlink->w = s->w;
inlink->h = s->h; outlink->h = s->h;
inlink->time_base = av_inv_q(s->frame_rate); outlink->time_base = av_inv_q(s->frame_rate);
inlink->sample_aspect_ratio = (AVRational) {1, 1}; outlink->sample_aspect_ratio = (AVRational) {1, 1};
if (s->seed == -1) if (s->seed == -1)
s->seed = av_get_random_seed(); s->seed = av_get_random_seed();
av_lfg_init(&s->lfg, s->seed); av_lfg_init(&s->lfg, s->seed);