idct: Change type of array stride parameters to ptrdiff_t