1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

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

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;