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:
parent
e0fbf89939
commit
9bbd3b3b17
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user