ffmpeg | branch: master | Anton Khirnov <[email protected]> | Sat Nov 4 07:54:10 2023 +0100| [26ebd96371d8d32ea5c227e0b97af5bbd847332f] | committer: Anton Khirnov
fftools/ffmpeg_filter: return an error on ofilter_alloc() failure > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26ebd96371d8d32ea5c227e0b97af5bbd847332f --- fftools/ffmpeg_filter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
