diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2013-03-17 17:06:30 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2013-03-17 17:06:30 +0000 |
| commit | 0abf4f8fbb1e63f96c4f0c78ae007011cef2f363 (patch) | |
| tree | 828b85569255bb067bcaa235743ee8a6e3cc082e /src/lib | |
| parent | a13e4a77e022be5978284b6ed6d6156d4af1378c (diff) | |
[trunk]remove wrong code in mj2 library detected by winfried (thanks to you)
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/openmj2/j2k.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lib/openmj2/j2k.c b/src/lib/openmj2/j2k.c index c9293730..7c22ca7c 100644 --- a/src/lib/openmj2/j2k.c +++ b/src/lib/openmj2/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)); |
