From 6a4572a56fe69583c68b8330c527ac346e2402fc Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Sat, 18 Feb 2006 12:51:35 +0000 Subject: [PATCH] COMP: Fix declaration hides parameter len --- libopenjpeg/t2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c index 43e1fe24..d9336ee1 100644 --- a/libopenjpeg/t2.c +++ b/libopenjpeg/t2.c @@ -125,7 +125,7 @@ static int t2_getnumpasses(opj_bio_t *bio) { return (37 + bio_read(bio, 7)); } -static int t2_encode_packet(opj_tcd_tile_t * tile, opj_tcp_t * tcp, opj_pi_iterator_t *pi, unsigned char *dest, int len, opj_image_info_t * image_info, int tileno) { +static int t2_encode_packet(opj_tcd_tile_t * tile, opj_tcp_t * tcp, opj_pi_iterator_t *pi, unsigned char *dest, int length, opj_image_info_t * image_info, int tileno) { int bandno, cblkno; unsigned char *sop = 0, *eph = 0; unsigned char *c = dest; @@ -170,7 +170,7 @@ static int t2_encode_packet(opj_tcd_tile_t * tile, opj_tcp_t * tcp, opj_pi_itera } bio = bio_create(); - bio_init_enc(bio, c, len); + bio_init_enc(bio, c, length); bio_write(bio, 1, 1); /* Empty header bit */ /* Writing Packet header */ -- 2.40.0