From be5e6941bfa341f95fdb10ae5aca4292a50f8767 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Wed, 28 Nov 2012 12:21:51 +0000 Subject: [PATCH] [trunk] JP3D: this is safe to write comment using Registration: ISO-8859-15 --- src/lib/openjp3d/jp3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/openjp3d/jp3d.c b/src/lib/openjp3d/jp3d.c index e54617b0..c21d7442 100755 --- a/src/lib/openjp3d/jp3d.c +++ b/src/lib/openjp3d/jp3d.c @@ -780,7 +780,7 @@ static void j3d_write_com(opj_j3d_t *j3d) { cio_write(cio, J3D_MS_COM, 2); lenp = cio_tell(cio); cio_skip(cio, 2); - cio_write(cio, 0, 2); + cio_write(cio, 1, 2); /*opj_event_msg(j3d->cinfo, EVT_INFO, "TRF %D ENCOD %d\n",j3d->cp->transform_format,j3d->cp->encoding_format);*/ if (j3d->cp->comment != NULL) { char *comment = j3d->cp->comment;