only alloc output frames with custom alloc function