fftools/ffmpeg_filter: initialize graph inputs/outputs

Avoids uninitialized free on error.

Found-by: Paul B Mahol
pull/389/head
Anton Khirnov 2 years ago
parent 57afccc0ef
commit 0ad64cdd92
  1. 3
      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;

Loading…
Cancel
Save