History

avfilter/vsrc_gradients: rename misleading variable

Paul B Mahol committed 4 years ago

Commit a45b7151 parent 75929ed1 file · +7 −7Browse files

Unified · Split

libavfilter/vsrc_gradients.c+7−7
@@ -281,19 +281,19 @@ static int draw_gradients_slice32_planar(AVFilterContext *ctx, void *arg, int jo · 280 unmodified lines
281 return 0;281 return 0;
282}282}
283 283
284static int config_output(AVFilterLink *inlink)284static int config_output(AVFilterLink *outlink)
285{285{
286 AVFilterContext *ctx = inlink->src;286 AVFilterContext *ctx = outlink->src;
287 GradientsContext *s = ctx->priv;287 GradientsContext *s = ctx->priv;
288 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);288 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(outlink->format);
289 289
290 if (av_image_check_size(s->w, s->h, 0, ctx) < 0)290 if (av_image_check_size(s->w, s->h, 0, ctx) < 0)
291 return AVERROR(EINVAL);291 return AVERROR(EINVAL);
292 292
293 inlink->w = s->w;293 outlink->w = s->w;
294 inlink->h = s->h;294 outlink->h = s->h;
295 inlink->time_base = av_inv_q(s->frame_rate);295 outlink->time_base = av_inv_q(s->frame_rate);
296 inlink->sample_aspect_ratio = (AVRational) {1, 1};296 outlink->sample_aspect_ratio = (AVRational) {1, 1};
297 if (s->seed == -1)297 if (s->seed == -1)
298 s->seed = av_get_random_seed();298 s->seed = av_get_random_seed();
299 av_lfg_init(&s->lfg, s->seed);299 av_lfg_init(&s->lfg, s->seed);

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