Make r1330 more robust. Display more info.

This commit is contained in:
Mathieu Malaterre 2012-01-20 14:48:07 +00:00
parent 5bd5d894eb
commit 85bbc6def8
1 changed files with 4 additions and 1 deletions

View File

@ -372,7 +372,10 @@ static void jp2_apply_pclr(opj_jp2_color_t *color, opj_image_t *image, opj_commo
if( pcol < nr_channels )
new_comps[pcol] = old_comps[cmp];
else
opj_event_msg(cinfo, EVT_ERROR, "Error with pcol value. skipping\n");
{
opj_event_msg(cinfo, EVT_ERROR, "Error with pcol value %d (max: %d). skipping\n", pcol, nr_channels);
continue;
}
if(cmap[i].mtyp == 0) /* Direct use */
{