1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avfilter/af_speechnorm: check return value of av_frame_make_writable()

This commit is contained in:
Paul B Mahol
2021-09-08 20:59:08 +02:00
parent ccd95cb248
commit 5db1e07a62

View File

@@ -410,7 +410,9 @@ static int filter_frame(AVFilterContext *ctx)
in = ff_bufqueue_get(&s->queue); in = ff_bufqueue_get(&s->queue);
av_frame_make_writable(in); ret = av_frame_make_writable(in);
if (ret < 0)
return ret;
s->filter_channels[s->link](ctx, in, in->nb_samples); s->filter_channels[s->link](ctx, in, in->nb_samples);