summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/jpeg_load.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/recorder/jpeg_load.c b/apps/recorder/jpeg_load.c
index e326d1c18a..61ec3bfa0e 100644
--- a/apps/recorder/jpeg_load.c
+++ b/apps/recorder/jpeg_load.c
@@ -1541,7 +1541,14 @@ INLINE void fix_huff_tables(struct jpeg *p_jpeg)
1541INLINE void fix_quant_tables(struct jpeg *p_jpeg) 1541INLINE void fix_quant_tables(struct jpeg *p_jpeg)
1542{ 1542{
1543 int shift, i, j; 1543 int shift, i, j;
1544 for (i = 0; i < 2; i++) 1544
1545#ifdef HAVE_LCD_COLOR
1546 const int k = 2;
1547#else
1548 const int k = 1;
1549#endif
1550
1551 for (i = 0; i < k; i++)
1545 { 1552 {
1546 shift = idct_tbl[p_jpeg->v_scale[i]].scale; 1553 shift = idct_tbl[p_jpeg->v_scale[i]].scale;
1547 if (shift) 1554 if (shift)