fix broken JPEG loading. Issue #40001

(cherry picked from commit d9f5c47d2a)
This commit is contained in:
Ondrej Pokorny 2022-11-23 10:25:43 +01:00 committed by marcoonthegit
parent d261c00571
commit 172952684c

View File

@ -1747,6 +1747,7 @@ begin
datasrc^.next_input_byte := next_input_byte;
datasrc^.bytes_in_buffer := bytes_in_buffer;
cinfo^.src^.skip_input_data(cinfo, long(Offset-headerlen));
Dec(remaining, long(Offset-headerlen));
next_input_byte := datasrc^.next_input_byte;
bytes_in_buffer := datasrc^.bytes_in_buffer;
end;