Implement avfilter_graph_check_validity().