avfilter/af_surround: check that upmix func ptr is valid

pull/388/head
Paul B Mahol 2 years ago
parent e0fbf89939
commit 9bbd3b3b17
  1. 1
      libavfilter/af_surround.c

@ -1949,6 +1949,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
ff_filter_get_nb_threads(ctx)));
s->filter(ctx);
if (s->upmix)
ff_filter_execute(ctx, s->upmix, NULL, NULL, outlink->ch_layout.nb_channels);
out = ff_get_audio_buffer(outlink, s->hop_size);

Loading…
Cancel
Save