diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-03-17 18:29:34 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-03-20 10:41:26 +0100 |
commit | 0ad64cdd92a132b57748bd8b84db955e1369f74e (patch) | |
tree | 02f04ed661aaba672e15d544f49891d03e4aa967 | |
parent | 57afccc0ef8d3024ffb2d1b2d25c9670b9501248 (diff) | |
download | ffmpeg-0ad64cdd92a132b57748bd8b84db955e1369f74e.tar.gz |
fftools/ffmpeg_filter: initialize graph inputs/outputs
Avoids uninitialized free on error.
Found-by: Paul B Mahol
-rw-r--r-- | fftools/ffmpeg_filter.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |