summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/recorder/jpeg_load.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/recorder/jpeg_load.c b/apps/recorder/jpeg_load.c
index 3334019..754cf41 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)
*/
INLINE void fix_quant_tables(struct jpeg *p_jpeg)
{
- int shift, i, a;
- unsigned x, y;
+ int shift, i, x, y, a;
for (i = 0; i < 2; i++)
{
shift = idct_tbl[p_jpeg->v_scale[i]].v_scale +
@@ -1515,9 +1514,9 @@ INLINE void fix_quant_tables(struct jpeg *p_jpeg)
if (shift)
{
a = 0;
- for (y = 0; y < BIT_N(p_jpeg->h_scale[i]); y++)
+ for (y = 0; y < (int)BIT_N(p_jpeg->h_scale[i]); y++)
{
- for (x = 0; x < BIT_N(p_jpeg->v_scale[i]); x++)
+ for (x = 0; x < (int)BIT_N(p_jpeg->v_scale[i]); x++)
p_jpeg->quanttable[i][zig[a+x]] <<= shift;
a += 8;
}