The C code treats the data as arrays of uint16_t so strides must not be in bytes but in pixels. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>