diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/jpeg_load.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/recorder/jpeg_load.c b/apps/recorder/jpeg_load.c index 3334019958..754cf41ab1 100644 --- a/apps/recorder/jpeg_load.c +++ b/apps/recorder/jpeg_load.c | |||
@@ -1506,8 +1506,7 @@ INLINE void fix_huff_tables(struct jpeg *p_jpeg) | |||
1506 | */ | 1506 | */ |
1507 | INLINE void fix_quant_tables(struct jpeg *p_jpeg) | 1507 | INLINE void fix_quant_tables(struct jpeg *p_jpeg) |
1508 | { | 1508 | { |
1509 | int shift, i, a; | 1509 | int shift, i, x, y, a; |
1510 | unsigned x, y; | ||
1511 | for (i = 0; i < 2; i++) | 1510 | for (i = 0; i < 2; i++) |
1512 | { | 1511 | { |
1513 | shift = idct_tbl[p_jpeg->v_scale[i]].v_scale + | 1512 | shift = idct_tbl[p_jpeg->v_scale[i]].v_scale + |
@@ -1515,9 +1514,9 @@ INLINE void fix_quant_tables(struct jpeg *p_jpeg) | |||
1515 | if (shift) | 1514 | if (shift) |
1516 | { | 1515 | { |
1517 | a = 0; | 1516 | a = 0; |
1518 | for (y = 0; y < BIT_N(p_jpeg->h_scale[i]); y++) | 1517 | for (y = 0; y < (int)BIT_N(p_jpeg->h_scale[i]); y++) |
1519 | { | 1518 | { |
1520 | for (x = 0; x < BIT_N(p_jpeg->v_scale[i]); x++) | 1519 | for (x = 0; x < (int)BIT_N(p_jpeg->v_scale[i]); x++) |
1521 | p_jpeg->quanttable[i][zig[a+x]] <<= shift; | 1520 | p_jpeg->quanttable[i][zig[a+x]] <<= shift; |
1522 | a += 8; | 1521 | a += 8; |
1523 | } | 1522 | } |