Implement avfilter_graph_alloc().