Add new comment

Your 'step' calculation is

Your 'step' calculation is wrong. copy_mem_image accept step in bytes, for 8-bit images it is width*3.
You calculate step as width*(24/8)*3 so width*9.

-- Alex Tutubalin @LibRaw LLC