diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-28 03:16:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-28 03:16:06 +0200 |
commit | 317be53ca626bc0467aac04245b0d4450e46ef50 (patch) | |
tree | 8fb74b672f581096db0887ceea4df8fc4e461351 /libavcodec/jpeg2000.c | |
parent | d62657eb4abbb0beb027f467d580a6cba529dc1c (diff) | |
download | ffmpeg-317be53ca626bc0467aac04245b0d4450e46ef50.tar.gz |
avcodec/jpeg2000: Support 32 decomposition levels
Fixes Ticket4680
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jpeg2000.c')
-rw-r--r-- | libavcodec/jpeg2000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c index 2a45089c3b..b60e770987 100644 --- a/libavcodec/jpeg2000.c +++ b/libavcodec/jpeg2000.c @@ -363,7 +363,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp, /* Formula example for tbx_0 = ceildiv((tcx_0 - 2 ^ (declvl - 1) * x0_b) / declvl) */ band->coord[i][j] = ff_jpeg2000_ceildivpow2(comp->coord_o[i][j] - - (((bandno + 1 >> i) & 1) << declvl - 1), + (((bandno + 1 >> i) & 1LL) << declvl - 1), declvl); /* TODO: Manage case of 3 band offsets here or * in coding/decoding function? */ |