summaryrefslogtreecommitdiff
path: root/libavcodec/j2k.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-27 17:58:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-27 17:58:06 +0200
commit243cc38d944b1a457178d5984d250321361301b3 (patch)
tree059817a76b5edece8291dd3b4049596f1a1313c7 /libavcodec/j2k.c
parent1b5cb6c00a170ebd850dc14cf23b33b5644f7909 (diff)
j2k: change fixed point of stepsize to 16.16
This seems more natural and matches jpeg2000 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/j2k.c')
-rw-r--r--libavcodec/j2k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/j2k.c b/libavcodec/j2k.c
index 171a10150b..2eca8455d9 100644
--- a/libavcodec/j2k.c
+++ b/libavcodec/j2k.c
@@ -289,7 +289,7 @@ int ff_j2k_init_component(Jpeg2000Component *comp,
}
/* BITEXACT computing case --> convert to int */
// if (avctx->flags & CODEC_FLAG_BITEXACT)
- band->stepsize = stepsize * (1 << 13);
+ band->stepsize = stepsize * (1 << 16);
/* computation of tbx_0, tbx_1, tby_0, tby_1
* see ISO/IEC 15444-1:2002 B.5 eq. B-15 and tbl B.1