openjp2/jp2: Fix two format strings

Compiler warnings:

src/lib/openjp2/jp2.c:1008:35: warning:
 too many arguments for format [-Wformat-extra-args]
src/lib/openjp2/j2k.c:1928:73: warning:
 format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘OPJ_OFF_T {aka long int}’ [-Wformat=]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-09-05 21:51:30 +02:00
parent 9d1a9dc20d
commit 31a03b390a
2 changed files with 3 additions and 2 deletions

View File

@ -1925,7 +1925,8 @@ static OPJ_BOOL opj_j2k_read_soc(opj_j2k_t *p_j2k,
/* FIXME move it in a index structure included in p_j2k*/ /* FIXME move it in a index structure included in p_j2k*/
p_j2k->cstr_index->main_head_start = opj_stream_tell(p_stream) - 2; p_j2k->cstr_index->main_head_start = opj_stream_tell(p_stream) - 2;
opj_event_msg(p_manager, EVT_INFO, "Start to read j2k main header (%d).\n", opj_event_msg(p_manager, EVT_INFO,
"Start to read j2k main header (%" PRId64 ").\n",
p_j2k->cstr_index->main_head_start); p_j2k->cstr_index->main_head_start);
/* Add the marker to the codestream index*/ /* Add the marker to the codestream index*/

View File

@ -1005,7 +1005,7 @@ static OPJ_BOOL opj_jp2_check_color(opj_image_t *image, opj_jp2_color_t *color,
if (!pcol_usage[i]) { if (!pcol_usage[i]) {
is_sane = 0U; is_sane = 0U;
opj_event_msg(p_manager, EVT_WARNING, opj_event_msg(p_manager, EVT_WARNING,
"Component mapping seems wrong. Trying to correct.\n", i); "Component mapping seems wrong. Trying to correct.\n");
break; break;
} }
} }