diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-11-04 07:54:10 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-11-09 11:25:17 +0100 |
commit | 26ebd96371d8d32ea5c227e0b97af5bbd847332f (patch) | |
tree | 6652f8f338cc0ab443af40595eb8ca54041ea2f2 /fftools | |
parent | 5db07311a073a7ce7f2ea72bd80049403f3f7589 (diff) | |
download | ffmpeg-26ebd96371d8d32ea5c227e0b97af5bbd847332f.tar.gz |
fftools/ffmpeg_filter: return an error on ofilter_alloc() failure
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffmpeg_filter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index c8920d9234..b7da105141 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -928,8 +928,10 @@ int fg_create(FilterGraph **pfg, char *graph_desc) for (AVFilterInOut *cur = outputs; cur; cur = cur->next) { OutputFilter *const ofilter = ofilter_alloc(fg); - if (!ofilter) + if (!ofilter) { + ret = AVERROR(ENOMEM); goto fail; + } ofilter->linklabel = cur->name; cur->name = NULL; |