summaryrefslogtreecommitdiffstats
path: root/libavcodec/j2kdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <[email protected]>2013-05-28 22:12:34 +0200
committerMichael Niedermayer <[email protected]>2013-05-28 22:16:14 +0200
commitfe7136ef8202b19fda262ea91adc09b3367d37d7 (patch)
treea90e7814be95420970639e8204364bf96dc6e637 /libavcodec/j2kdec.c
parentaa0d11ed0bdfc38f800771b1d695469ff691dd96 (diff)
j2k/jpeg2000: split stepsize in float & int variables
This is more clear and less prone to mistakes. Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavcodec/j2kdec.c')
-rw-r--r--libavcodec/j2kdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 42862b927a..228c045172 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -827,7 +827,7 @@ static void dequantization_int(int x, int y, Jpeg2000Cblk *cblk,
for (i = 0; i < (cblk->coord[0][1] - cblk->coord[0][0]); ++i) {
idx = (comp->coord[0][1] - comp->coord[0][0]) * j + i;
datap[idx] =
- ((int32_t)(t1->data[j][i]) * ((int32_t)band->stepsize) + (1 << 15)) >> 16;
+ ((int32_t)(t1->data[j][i]) * band->i_stepsize + (1 << 15)) >> 16;
}
}