Skip to content

Commit 4aeec72

Browse files
committed
changed ERROR->WARNING for log messages
1 parent 7603306 commit 4aeec72

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/lib/openjp2/j2k.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4735,9 +4735,8 @@ static OPJ_BOOL opj_j2k_read_sod(opj_j2k_t *p_j2k,
47354735
/* Check enough bytes left in stream before allocation */
47364736
if ((OPJ_OFF_T)p_j2k->m_specific_param.m_decoder.m_sot_length >
47374737
opj_stream_get_number_byte_left(p_stream)) {
4738-
opj_event_msg(p_manager, EVT_ERROR,
4738+
opj_event_msg(p_manager, EVT_WARNING,
47394739
"Tile part length size inconsistent with stream length\n");
4740-
//return OPJ_FALSE;
47414740
}
47424741
if (p_j2k->m_specific_param.m_decoder.m_sot_length >
47434742
UINT_MAX - OPJ_COMMON_CBLK_DATA_EXTRA) {

src/lib/openjp2/t2.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,13 +1359,10 @@ static OPJ_BOOL opj_t2_read_packet_data(opj_t2_t* p_t2,
13591359
(OPJ_SIZE_T)l_current_data) ||
13601360
(l_current_data + l_seg->newlen > p_src_data + p_max_length) ||
13611361
(partial_buffer)) {
1362-
opj_event_msg(p_manager, EVT_ERROR,
1362+
opj_event_msg(p_manager, EVT_WARNING,
13631363
"read: segment too long (%d) with max (%d) for codeblock %d (p=%d, b=%d, r=%d, c=%d)\n",
13641364
l_seg->newlen, p_max_length, cblkno, p_pi->precno, bandno, p_pi->resno,
13651365
p_pi->compno);
1366-
// NOTE - originall we would return OPJ_FALSE here when we encountered partial bitstream
1367-
//return OPJ_FALSE;
1368-
13691366
// skip this codeblock since it is a partial read
13701367
partial_buffer = 1;
13711368
l_cblk->numchunks = 0;

0 commit comments

Comments
 (0)