diff options
| author | Antonin Descampe <antonin@gmail.com> | 2004-07-16 09:08:27 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2004-07-16 09:08:27 +0000 |
| commit | 8d2121606dc0cad35cd0295a384c408f11700c60 (patch) | |
| tree | 034f25c22be79474377173898a978ebdaaec136a /libopenjpeg/t2.c | |
| parent | e28d3d63eab658e06faee12476e56bf2d74a1fcb (diff) | |
Minor changes for RESET mode
Diffstat (limited to 'libopenjpeg/t2.c')
| -rw-r--r-- | libopenjpeg/t2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c index cd5ca45e..9ccc64c3 100644 --- a/libopenjpeg/t2.c +++ b/libopenjpeg/t2.c @@ -463,8 +463,6 @@ int t2_decode_packet(unsigned char *src, int len, tcd_tile_t * tile, c=hd; } - //bio_init_dec(c, src + len - c); - for (bandno = 0; bandno < res->numbands; bandno++) { tcd_band_t *band = &res->bands[bandno]; tcd_precinct_t *prc = &band->precincts[precno]; @@ -479,7 +477,8 @@ int t2_decode_packet(unsigned char *src, int len, tcd_tile_t * tile, if (!cblk->numnewpasses) continue; if (!cblk->numsegs) { - seg = &cblk->segs[cblk->numsegs++]; + seg = &cblk->segs[0]; + cblk->numsegs++; cblk->len = 0; } else { seg = &cblk->segs[cblk->numsegs - 1]; |
