[FFmpeg-devel] [PATCH] fftools/ffmpeg_filter: initialize graph inputs/outputs
Anton Khirnov
anton at khirnov.net
Fri Mar 17 19:31:05 EET 2023
Avoids uninitialized free on error.
Found-by: Paul B Mahol
---
fftools/ffmpeg_filter.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 02d456c473..5d8398b9a8 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -446,6 +446,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;
--
2.39.1
More information about the ffmpeg-devel
mailing list