avfilter/af_join: do not dereference possible null pointer

release/5.1
Paul B Mahol 3 years ago
parent f9db470f25
commit 55e509b094
  1. 3
      libavfilter/af_join.c

@ -586,7 +586,8 @@ static int activate(AVFilterContext *ctx)
}
}
nb_samples = s->input_frames[0]->nb_samples;
if (s->input_frames[0])
nb_samples = s->input_frames[0]->nb_samples;
for (i = 1; i < ctx->nb_inputs && nb_samples > 0; i++) {
if (s->input_frames[i])

Loading…
Cancel
Save