return 0;
}
-int graph_load_from_desc3(AVFilterGraph *graph, AVFilterGraphDesc *desc, AVFilterContext *in, int inpad, AVFilterContext *out, int outpad)
+static int load_from_desc(AVFilterGraph *graph, AVFilterGraphDesc *desc, AVFilterContext *in, int inpad, AVFilterContext *out, int outpad)
{
AVFilterGraphDescExport *curpad;
char tmp[20];
/**
* Free a graph description.
*/
-void avfilter_graph_free_desc(AVFilterGraphDesc *desc)
+static void free_desc(AVFilterGraphDesc *desc)
{
void *next;
fail:
free_inout(head);
- avfilter_graph_free_desc(ret);
+ free_desc(ret);
return NULL;
}
if (!desc)
return -1;
- if (graph_load_from_desc3(graph, desc, in, inpad, out, outpad) < 0) {
- avfilter_graph_free_desc(desc);
+ if (load_from_desc(graph, desc, in, inpad, out, outpad) < 0) {
+ free_desc(desc);
return -1;
}
- avfilter_graph_free_desc(desc);
+ free_desc(desc);
return 0;
}