aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/jpeg/tinyjpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/jpeg/tinyjpeg.c')
-rw-r--r--com32/lib/jpeg/tinyjpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/lib/jpeg/tinyjpeg.c b/com32/lib/jpeg/tinyjpeg.c
index a9395a5d..3c6070f4 100644
--- a/com32/lib/jpeg/tinyjpeg.c
+++ b/com32/lib/jpeg/tinyjpeg.c
@@ -917,9 +917,9 @@ int tinyjpeg_decode(struct jdec_private *priv,
resync(priv);
/* Don't forget to that block can be either 8 or 16 lines */
- bytes_per_blocklines[0] <<= yshift_by_mcu;
- bytes_per_blocklines[1] <<= yshift_by_mcu;
- bytes_per_blocklines[2] <<= yshift_by_mcu;
+ bytes_per_blocklines[0] <<= yshift_by_mcu-3;
+ bytes_per_blocklines[1] <<= yshift_by_mcu-3;
+ bytes_per_blocklines[2] <<= yshift_by_mcu-3;
bytes_per_mcu[0] <<= xshift_by_mcu-3;
bytes_per_mcu[1] <<= xshift_by_mcu-3;