summaryrefslogtreecommitdiff
path: root/components/external/tjpgd1a/tjpgd.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/external/tjpgd1a/tjpgd.c')
-rw-r--r--components/external/tjpgd1a/tjpgd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/external/tjpgd1a/tjpgd.c b/components/external/tjpgd1a/tjpgd.c
index 9c69989ced..4203336c51 100644
--- a/components/external/tjpgd1a/tjpgd.c
+++ b/components/external/tjpgd1a/tjpgd.c
@@ -525,7 +525,7 @@ JRESULT mcu_load (
} while (++i < 64); /* Next AC element */
if (JD_USE_SCALE && jd->scale == 3)
- *bp = (*tmp / 256) + 128; /* If scale ratio is 1/8, IDCT can be ommited and only DC element is used */
+ *bp = (BYTE)((*tmp / 256) + 128); /* If scale ratio is 1/8, IDCT can be ommited and only DC element is used */
else
block_idct(tmp, bp); /* Apply IDCT and store the block to the MCU buffer */