diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-27 17:58:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-27 17:58:06 +0200 |
commit | 243cc38d944b1a457178d5984d250321361301b3 (patch) | |
tree | 059817a76b5edece8291dd3b4049596f1a1313c7 /libavcodec/j2kdec.c | |
parent | 1b5cb6c00a170ebd850dc14cf23b33b5644f7909 (diff) | |
download | ffmpeg-243cc38d944b1a457178d5984d250321361301b3.tar.gz |
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/j2kdec.c')
-rw-r--r-- | libavcodec/j2kdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c index b349c97111..7bf0e9e6de 100644 --- a/libavcodec/j2kdec.c +++ b/libavcodec/j2kdec.c @@ -830,7 +830,7 @@ static int decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile) int *datap = &comp->data[(comp->coord[0][1] - comp->coord[0][0]) * (y+j) + x]; int *ptr = t1.data[j]; for (i = 0; i < (cblk->coord[0][1] - cblk->coord[0][0]); ++i) { - int tmp = ((int64_t)ptr[i]) * ((int64_t)band->stepsize) >> 13, tmp2; + int tmp = ((int64_t)ptr[i]) * ((int64_t)band->stepsize) >> 16, tmp2; tmp2 = FFABS(tmp>>1) + (tmp&1); datap[i] = tmp < 0 ? -tmp2 : tmp2; } |