Skip to content

Commit

Permalink
zero header length
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Apr 20, 2024
1 parent 79099a6 commit 4b421a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions winbuild/build/src/openjpeg-2.5.2/src/lib/openjp2/t2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,9 @@ static OPJ_BOOL opj_t2_read_packet_header(opj_t2_t* p_t2,

l_header_length = (OPJ_UINT32)(l_header_data - *l_header_data_start);
JAS_FPRINTF(stderr, "hdrlen=%d \n", l_header_length);
if (!l_header_length) {
return OPJ_FALSE;
}
JAS_FPRINTF(stderr, "packet body\n");
*l_modified_length_ptr -= l_header_length;
*l_header_data_start += l_header_length;
Expand Down

0 comments on commit 4b421a0

Please sign in to comment.