summaryrefslogtreecommitdiff
path: root/libavcodec/jpeg2000.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-09 00:27:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-09 01:02:05 +0200
commit074159ed70acd379d94378b72a9202283e651ba0 (patch)
tree8ec20fd2236d06815ad03068fa38983841e9f845 /libavcodec/jpeg2000.c
parent12ba1b2b4d5592c0e27b0fcc83db929e8d6a8eee (diff)
avcodec/jpeg2000dec: Fix subsampled decoding
Fixes part of Ticket3619 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jpeg2000.c')
-rw-r--r--libavcodec/jpeg2000.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c
index 644e25d399..770dffb422 100644
--- a/libavcodec/jpeg2000.c
+++ b/libavcodec/jpeg2000.c
@@ -364,11 +364,6 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp,
log2_band_prec_height = reslevel->log2_prec_height - 1;
}
- for (j = 0; j < 2; j++)
- band->coord[0][j] = ff_jpeg2000_ceildiv(band->coord[0][j], dx);
- for (j = 0; j < 2; j++)
- band->coord[1][j] = ff_jpeg2000_ceildiv(band->coord[1][j], dy);
-
if (reslevel->num_precincts_x * (uint64_t)reslevel->num_precincts_y > INT_MAX) {
band->prec = NULL;
return AVERROR(ENOMEM);