[FFmpeg-cvslog] fftools/ffmpeg_filter: return an error on ofilter_alloc() failure
Anton Khirnov
git at videolan.org
Thu Nov 9 12:30:05 EET 2023
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | 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;
More information about the ffmpeg-cvslog
mailing list