You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
fftools/ffmpeg_filter: initialize graph inputs/outputs
Avoids uninitialized free on error. Found-by: Paul B Mahol
This commit is contained in:
@@ -445,6 +445,9 @@ static int graph_parse(AVFilterGraph *graph, const char *desc,
|
|||||||
AVFilterGraphSegment *seg;
|
AVFilterGraphSegment *seg;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
*inputs = NULL;
|
||||||
|
*outputs = NULL;
|
||||||
|
|
||||||
ret = avfilter_graph_segment_parse(graph, desc, 0, &seg);
|
ret = avfilter_graph_segment_parse(graph, desc, 0, &seg);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user