Fixed c code of stride downsampling