This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 2ac9facaf575685be1e6ab95492f2c5bf0562567 (commit) from 7365572a6c0e30a31eb955994a9414fad2fd39f6 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/2ac9facaf575685be1e6ab95492f2c5bf0562...
commit 2ac9facaf575685be1e6ab95492f2c5bf0562567 Author: Cyril Hrubis metan@ucw.cz Date: Sat Jan 11 23:06:27 2014 +0100
loaders: JPG: Fix skip_input_data()
Fix stupid bug in skip_input_data().
The size of data in buffer needs to be first substracted from the seek bytes and then zeroed, not the other way around.
Signed-off-by: Cyril Hrubis metan@ucw.cz
diff --git a/libs/loaders/GP_JPG.c b/libs/loaders/GP_JPG.c index 0457cba..9d19d9c 100644 --- a/libs/loaders/GP_JPG.c +++ b/libs/loaders/GP_JPG.c @@ -172,8 +172,8 @@ static void skip_input_data(struct jpeg_decompress_struct *cinfo, long num_bytes GP_DEBUG(3, "Skipping %li bytes", num_bytes);
if (src->mgr.bytes_in_buffer < (unsigned long)num_bytes) { - src->mgr.bytes_in_buffer = 0; GP_IOSeek(src->io, num_bytes - src->mgr.bytes_in_buffer, GP_IO_SEEK_CUR); + src->mgr.bytes_in_buffer = 0; } else { src->mgr.bytes_in_buffer -= num_bytes; src->mgr.next_input_byte += num_bytes;
-----------------------------------------------------------------------
Summary of changes: libs/loaders/GP_JPG.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.