arm: dsputil: fix overreads in put/avg_pixels functions