avfiltergraph: Properly handle memory allocation failure