This commit is contained in:
parent
482c4eb215
commit
449e83fbf2
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ void jpeg_reader<T>::skip(j_decompress_ptr cinfo, long count)
|
|||
}
|
||||
else
|
||||
{
|
||||
wrap->stream->seekg(count, std::ios_base::cur);
|
||||
wrap->stream->seekg(count - wrap->manager.bytes_in_buffer, std::ios_base::cur);
|
||||
// trigger buffer fill
|
||||
wrap->manager.next_input_byte = 0;
|
||||
wrap->manager.bytes_in_buffer = 0; //bytes_in_buffer may be zero on return.
|
||||
|
|
Loading…
Add table
Reference in a new issue