Update t2.c
This commit is contained in:
parent
b2df8a57bb
commit
2bb1285323
|
@ -1305,6 +1305,7 @@ static OPJ_BOOL opj_t2_read_packet_data(opj_t2_t* p_t2,
|
|||
{
|
||||
OPJ_UINT32 bandno, cblkno;
|
||||
OPJ_UINT32 l_nb_code_blocks;
|
||||
int truncate;
|
||||
OPJ_BYTE *l_current_data = p_src_data;
|
||||
opj_tcd_band_t *l_band = 00;
|
||||
opj_tcd_cblk_dec_t* l_cblk = 00;
|
||||
|
@ -1313,7 +1314,7 @@ static OPJ_BOOL opj_t2_read_packet_data(opj_t2_t* p_t2,
|
|||
|
||||
OPJ_ARG_NOT_USED(p_t2);
|
||||
OPJ_ARG_NOT_USED(pack_info);
|
||||
int truncate = 0;
|
||||
|
||||
|
||||
l_band = l_res->bands;
|
||||
for (bandno = 0; bandno < l_res->numbands; ++bandno) {
|
||||
|
@ -1359,7 +1360,7 @@ static OPJ_BOOL opj_t2_read_packet_data(opj_t2_t* p_t2,
|
|||
l_seg->newlen, l_current_data, p_src_data, p_max_length, cblkno, p_pi->precno, bandno, p_pi->resno,
|
||||
p_pi->compno);
|
||||
truncate = 1;
|
||||
l_seg->newlen = p_src_data + p_max_length - l_current_data;
|
||||
l_seg->newlen = (OPJ_SIZE_T)(p_src_data + p_max_length - l_current_data);
|
||||
|
||||
//opj_event_msg(p_manager, EVT_ERROR,
|
||||
// "read: segment too long (%d) current data (%d) p_src_data (%d) with max (%d) for codeblock %d (p=%d, b=%d, r=%d, c=%d)\n",
|
||||
|
|
Loading…
Reference in New Issue