diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-25 17:48:25 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-25 18:20:01 +0100 |
commit | a45b71570aae2bb50f274362367f692d7fcebac3 (patch) | |
tree | e40ef484c66378893786915a2097dbaa33d4ddca /libavfilter/vsrc_gradients.c | |
parent | 75929ed62bfe8382b06ef8bef919e2b8fd3eb5fb (diff) | |
download | ffmpeg-a45b71570aae2bb50f274362367f692d7fcebac3.tar.gz |
avfilter/vsrc_gradients: rename misleading variable
Diffstat (limited to 'libavfilter/vsrc_gradients.c')
-rw-r--r-- | libavfilter/vsrc_gradients.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavfilter/vsrc_gradients.c b/libavfilter/vsrc_gradients.c index 61d078cd10..1eb72659e0 100644 --- a/libavfilter/vsrc_gradients.c +++ b/libavfilter/vsrc_gradients.c @@ -281,19 +281,19 @@ static int draw_gradients_slice32_planar(AVFilterContext *ctx, void *arg, int jo 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; - 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) 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); |