Update ccv.pyx

clear before set_buf