Update src/jpgimage.cpp
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
This commit is contained in:
parent
a530cf9d03
commit
7ab4554c41
@ -153,7 +153,7 @@ void JpegBase::readMetadata() {
|
||||
|
||||
// Read the rest of the segment.
|
||||
DataBuf buf(size);
|
||||
/// check if the segment is not empty
|
||||
// check if the segment is not empty
|
||||
if (size > 2) {
|
||||
io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
|
||||
std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user