1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avfilter/af_surround: check that upmix func ptr is valid

This commit is contained in:
Paul B Mahol 2022-11-14 22:19:34 +01:00
parent e0fbf89939
commit 9bbd3b3b17

View File

@ -1949,7 +1949,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
ff_filter_get_nb_threads(ctx)));
s->filter(ctx);
ff_filter_execute(ctx, s->upmix, NULL, NULL, outlink->ch_layout.nb_channels);
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);
if (!out)