avfiltergraph: change the syntax of avfilter_graph_parse()
Make it returns the list of open inputs and outputs, so it can be reused by applications. Breaks API/ABI.
This commit is contained in:
parent
86909dd5f7
commit
6119b23a36
6 changed files with 22 additions and 17 deletions
2
ffmpeg.c
2
ffmpeg.c
|
@ -418,7 +418,7 @@ static int configure_video_filters(AVInputStream *ist, AVOutputStream *ost)
|
|||
inputs->pad_idx = 0;
|
||||
inputs->next = NULL;
|
||||
|
||||
if ((ret = avfilter_graph_parse(ost->graph, ost->avfilter, inputs, outputs, NULL)) < 0)
|
||||
if ((ret = avfilter_graph_parse(ost->graph, ost->avfilter, &inputs, &outputs, NULL)) < 0)
|
||||
return ret;
|
||||
av_freep(&ost->avfilter);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue