team-charls/charls

Wrong JPEG-LS encoding when stride is non-default (stride != 0), component count > 1 and interleave_mode is none

messicn opened this issue · 0 comments

if (interleave_mode_ == charls::interleave_mode::none)
{
const size_t byte_count_component = static_cast<size_t>(bit_to_byte_count(frame_info_.bits_per_sample)) * frame_info_.width * frame_info_.height; // ???

should be
const size_t byte_count_component = stride * frame_info_.height;