diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2005-08-01 15:10:04 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2005-08-01 15:10:04 +0000 |
| commit | e25e7e767e7195d06173be0a88b4225612c026f5 (patch) | |
| tree | d5a52e3ceb747c9afe3de12147b47cbf713bca85 /libopenjpeg/jpt.c | |
| parent | de75303c38253bf5f5aeb31d20769c96167fc3a7 (diff) | |
Modifications proposed by Rob Komar. Thanks for your contribution !
Diffstat (limited to 'libopenjpeg/jpt.c')
| -rw-r--r-- | libopenjpeg/jpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopenjpeg/jpt.c b/libopenjpeg/jpt.c index de0c8746..1d4713dc 100644 --- a/libopenjpeg/jpt.c +++ b/libopenjpeg/jpt.c @@ -119,7 +119,7 @@ void jpt_read_Msg_Header(jpt_msg_header_struct_t * header) } /* see information on bits 'c' [p 10 : A.2.1 general, ISO/IEC FCD 15444-9] */ - if (((elmt >> 3) & 0x01) == 1) + if (((elmt >> 4) & 0x01) == 1) header->last_byte = 1; /* In-class identifier */ @@ -156,7 +156,7 @@ void jpt_read_Msg_Header(jpt_msg_header_struct_t * header) /* ---------- */ /* VBAS : Aux */ /* ---------- */ - if (header->CSn_Id == 1) { + if ((header->Class_Id & 0x01) == 1) { header->Layer_nb = 0; header->Layer_nb = jpt_read_VBAS_info(header->Layer_nb); } |
