Skip to content

Commit 746bd45

Browse files
committed
changed ERROR->WARNING for log messages
1 parent e984e13 commit 746bd45

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
@@ -4906,9 +4906,8 @@ static OPJ_BOOL opj_j2k_read_sod(opj_j2k_t *p_j2k,
49064906
/* Check enough bytes left in stream before allocation */
49074907
if ((OPJ_OFF_T)p_j2k->m_specific_param.m_decoder.m_sot_length >
49084908
opj_stream_get_number_byte_left(p_stream)) {
4909-
opj_event_msg(p_manager, EVT_ERROR,
4909+
opj_event_msg(p_manager, EVT_WARNING,
49104910
"Tile part length size inconsistent with stream length\n");
4911-
//return OPJ_FALSE;
49124911
}
49134912
if (p_j2k->m_specific_param.m_decoder.m_sot_length >
49144913
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
@@ -1397,13 +1397,10 @@ static OPJ_BOOL opj_t2_read_packet_data(opj_t2_t* p_t2,
13971397
(OPJ_SIZE_T)l_current_data) ||
13981398
(l_current_data + l_seg->newlen > p_src_data + p_max_length) ||
13991399
(partial_buffer)) {
1400-
opj_event_msg(p_manager, EVT_ERROR,
1400+
opj_event_msg(p_manager, EVT_WARNING,
14011401
"read: segment too long (%d) with max (%d) for codeblock %d (p=%d, b=%d, r=%d, c=%d)\n",
14021402
l_seg->newlen, p_max_length, cblkno, p_pi->precno, bandno, p_pi->resno,
14031403
p_pi->compno);
1404-
// NOTE - originall we would return OPJ_FALSE here when we encountered partial bitstream
1405-
//return OPJ_FALSE;
1406-
14071404
// skip this codeblock since it is a partial read
14081405
partial_buffer = 1;
14091406
l_cblk->numchunks = 0;

0 commit comments

Comments
 (0)