Remove the redundant memory copy, and also sync the memory copy conditions to the conditions for doing affine search in the same function. It is a lossless code change.
Remove the redundant memory copy, and also sync the memory copy conditions to the conditions for doing affine search in the same function. It is a lossless code change.