X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fjpeg%2Fjpegloader.cpp;fp=source%2Fgraphics%2Fjpeg%2Fjpegloader.cpp;h=9aadcb9e8daa849c922d6a5269df4dc34eae9ffc;hb=56500afb28872f4050d42d536628daa1df5ab6a5;hp=415e79f95927959c6d667233e7734e5ed657d226;hpb=5d8a8dbe07aaf8d9bd2c4c2982b34a877aee432f;p=libs%2Fgui.git diff --git a/source/graphics/jpeg/jpegloader.cpp b/source/graphics/jpeg/jpegloader.cpp index 415e79f..9aadcb9 100644 --- a/source/graphics/jpeg/jpegloader.cpp +++ b/source/graphics/jpeg/jpegloader.cpp @@ -61,7 +61,7 @@ void skip_input_data(j_decompress_ptr jpeg, long count) } else { - src->io->seek(count, Msp::IO::S_CUR); + src->io->seek(count-src->bytes_in_buffer, Msp::IO::S_CUR); src->bytes_in_buffer = 0; } }