Update t2.c

This commit is contained in:
Jarrel Seah 2019-11-21 21:14:35 +11:00 committed by GitHub
parent c13a6b2d82
commit 0d81fe7a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1497,7 +1497,7 @@ static OPJ_BOOL opj_t2_skip_packet_data(opj_t2_t* p_t2,
// l_seg->newlen, p_max_length, cblkno, p_pi->precno, bandno, p_pi->resno,
// p_pi->compno);
truncate = 1;
l_seg->newlen = (OPJ_SIZE_T)(p_max_length - p_data_read);
l_seg->newlen = (OPJ_SIZE_T)(p_max_length - *p_data_read);
return OPJ_FALSE;
}