vslsmas: Reduce memory copies to output the buffer when the scaler is used.