fftools/ffmpeg_filter: return an error on ofilter_alloc() failure

release/7.0
Anton Khirnov 1 year ago
parent 5db07311a0
commit 26ebd96371
  1. 4
      fftools/ffmpeg_filter.c

@ -928,8 +928,10 @@ int fg_create(FilterGraph **pfg, char *graph_desc)
for (AVFilterInOut *cur = outputs; cur; cur = cur->next) { for (AVFilterInOut *cur = outputs; cur; cur = cur->next) {
OutputFilter *const ofilter = ofilter_alloc(fg); OutputFilter *const ofilter = ofilter_alloc(fg);
if (!ofilter) if (!ofilter) {
ret = AVERROR(ENOMEM);
goto fail; goto fail;
}
ofilter->linklabel = cur->name; ofilter->linklabel = cur->name;
cur->name = NULL; cur->name = NULL;

Loading…
Cancel
Save