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:
parent
57afccc0ef
commit
0ad64cdd92
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user