projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07163be
)
[1.5] Remove addition from r1702 this introduced a regression as seen in issue 205
author
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Tue, 25 Feb 2014 14:44:55 +0000
(14:44 +0000)
committer
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Tue, 25 Feb 2014 14:44:55 +0000
(14:44 +0000)
Fixes issue 205
libopenjpeg/j2k.c
patch
|
blob
|
history
diff --git
a/libopenjpeg/j2k.c
b/libopenjpeg/j2k.c
index 77acfe09587230a1c021473a504d641f6a7829e7..9f953cb9b05989b5503650716a2616589b32c996 100644
(file)
--- a/
libopenjpeg/j2k.c
+++ b/
libopenjpeg/j2k.c
@@
-1538,24
+1538,6
@@
static void j2k_read_sod(opj_j2k_t *j2k) {
truncate = 1; /* Case of a truncate codestream */
}
- {/* chop padding bytes: */
- unsigned char *s, *e;
-
- s = cio_getbp(cio);
- e = s + len;
-
- if(len > 8) s = e - 8;
-
- if(e[-2] == 0x00 && e[-1] == 0x00) /* padding bytes */
- {
- while(e > s)
- {
- if(e[-2] == 0xff && e[-1] == 0xd9) break;
- --len; --e; truncate = 1;
- }
- }
- }
-
data = j2k->tile_data[curtileno];
data = (unsigned char*) opj_realloc(data, (j2k->tile_len[curtileno] + len) * sizeof(unsigned char));