fftools/ffmpeg_filter: initialize graph inputs/outputs

Avoids uninitialized free on error.

Found-by: Paul B Mahol
This commit is contained in:
Anton Khirnov 2023-03-17 18:29:34 +01:00
parent 57afccc0ef
commit 0ad64cdd92
1 changed files with 3 additions and 0 deletions

View File

@ -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;