lavfi: add error handling to filter_samples().