Unified · Split
| @@ -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 | ||
| 284 | static int config_output(AVFilterLink *inlink) | 284 | static 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); |