Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/jpeg2000.imageio/jpeg2000input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ Jpeg2000Input::ojph_read_image()
int ch = m_spec.nchannels;
ojph::param_siz siz = codestream.access_siz();

const int bufsize = w * h * ch * buffer_bpp;
const size_t bufsize = size_t(w) * size_t(h) * size_t(ch)
* size_t(buffer_bpp);
m_buf.resize(bufsize);
Comment thread
lgritz marked this conversation as resolved.
Outdated
codestream.create();

Expand Down
Loading