From d802de0e88f7e5203483fb6813299359ba8324d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Pais?= Date: Fri, 16 Mar 2018 12:03:19 +0100 Subject: [PATCH] Fix copy-paste error --- precomp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/precomp.cpp b/precomp.cpp index c8d776a..58c77ba 100644 --- a/precomp.cpp +++ b/precomp.cpp @@ -4310,7 +4310,7 @@ bool compress_file(float min_percent, float max_percent) { // bit 4..7: precision of QT, 0 = 8 bit, otherwise 16 bit if (length<=262 && ((length-2)%65)==0 && in[4]<=3) { hasQuantTable = true; - offset += length+2; + input_file_pos += length+2; } else done = true; @@ -4318,7 +4318,7 @@ bool compress_file(float min_percent, float max_percent) { } case 0xC4 : { done = ((in[4]&0xF)>3 || (in[4]>>4)>1); - offset += length+2; + input_file_pos += length+2; break; } case 0xDA : found = hasQuantTable;