avfilter/aresample: Check for memory alloc failure for out sample rates