[trunk] start using new functionalities from opj_inttypes in jpip code and main openjpeg

This commit is contained in:
Mathieu Malaterre
2012-03-19 11:18:24 +00:00
parent e07b265009
commit ff72dd8d2c
20 changed files with 64 additions and 62 deletions

View File

@@ -31,6 +31,7 @@
#include <string.h>
#include "openjpeg.h"
#include "index.h"
#include "opj_inttypes.h"
/* ------------------------------------------------------------------------------------ */
@@ -380,7 +381,7 @@ int write_index_file(opj_codestream_info_t *cstr_info, char *index) {
fprintf(stream, "%d\n", cstr_info->marknum);
fprintf(stream, "type\tstart_pos length\n");
for (x = 0; x < cstr_info->marknum; x++)
fprintf(stream, "%X\t%9d %9d\n", cstr_info->marker[x].type, cstr_info->marker[x].pos, cstr_info->marker[x].len);
fprintf(stream, "%X\t%9" PRId64 " %9d\n", cstr_info->marker[x].type, cstr_info->marker[x].pos, cstr_info->marker[x].len);
}
/* <<UniPG */
fclose(stream);