[FFmpeg-cvslog] fftools/ffmpeg_filter: initialize graph inputs/outputs
Anton Khirnov
git at videolan.org
Mon Mar 20 11:50:17 EET 2023
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Mar 17 18:29:34 2023 +0100| [0ad64cdd92a132b57748bd8b84db955e1369f74e] | committer: Anton Khirnov
fftools/ffmpeg_filter: initialize graph inputs/outputs
Avoids uninitialized free on error.
Found-by: Paul B Mahol
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ad64cdd92a132b57748bd8b84db955e1369f74e
---
fftools/ffmpeg_filter.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 3504a3cc0a..62d0eefa6d 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -445,6 +445,9 @@ static int graph_parse(AVFilterGraph *graph, const char *desc,
AVFilterGraphSegment *seg;
int ret;
+ *inputs = NULL;
+ *outputs = NULL;
+
ret = avfilter_graph_segment_parse(graph, desc, 0, &seg);
if (ret < 0)
return ret;
More information about the ffmpeg-cvslog
mailing list