avfilter/vsrc_gradients: set outlink frame_rate

release/5.1
Paul B Mahol 3 years ago
parent a45b71570a
commit 5c2d333ecf
  1. 1
      libavfilter/vsrc_gradients.c

@ -294,6 +294,7 @@ static int config_output(AVFilterLink *outlink)
outlink->h = s->h;
outlink->time_base = av_inv_q(s->frame_rate);
outlink->sample_aspect_ratio = (AVRational) {1, 1};
outlink->frame_rate = s->frame_rate;
if (s->seed == -1)
s->seed = av_get_random_seed();
av_lfg_init(&s->lfg, s->seed);

Loading…
Cancel
Save