Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -281,19 +281,19 @@ static int draw_gradients_slice32_planar(AVFilterContext *ctx, void *arg, int jo · 280 unmodified lines | ||
| 281 | 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 | 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 | 290 | if (av_image_check_size(s->w, s->h, 0, ctx) < 0) |
| 291 | 291 | return AVERROR(EINVAL); |
| 292 | 292 | |
| 293 | − inlink->w = s->w; | |
| 294 | − inlink->h = s->h; | |
| 295 | − inlink->time_base = av_inv_q(s->frame_rate); | |
| 296 | − inlink->sample_aspect_ratio = (AVRational) {1, 1}; | |
| 293 | + outlink->w = s->w; | |
| 294 | + outlink->h = s->h; | |
| 295 | + outlink->time_base = av_inv_q(s->frame_rate); | |
| 296 | + outlink->sample_aspect_ratio = (AVRational) {1, 1}; | |
| 297 | 297 | if (s->seed == -1) |
| 298 | 298 | s->seed = av_get_random_seed(); |
| 299 | 299 | av_lfg_init(&s->lfg, s->seed); |