diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-14 20:02:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-14 22:59:50 +0200 |
commit | a206c13289e6153c910ecb47eba5fc9e1d8fbbc7 (patch) | |
tree | 6d952efff2b98e656046e901d894fe9b1454b516 /libavcodec/jpeg2000dec.c | |
parent | d9841e53e2eb5aa501d788f9723f0e04ed591a22 (diff) | |
download | ffmpeg-a206c13289e6153c910ecb47eba5fc9e1d8fbbc7.tar.gz |
avcodec/jpeg2000: Change codeblock coords to same origin as bands
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jpeg2000dec.c')
-rw-r--r-- | libavcodec/jpeg2000dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index de9aa6dbc6..da0a83aeba 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -1524,8 +1524,8 @@ static int jpeg2000_decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, cblk->coord[1][1] - cblk->coord[1][0], bandpos); - x = cblk->coord[0][0]; - y = cblk->coord[1][0]; + x = cblk->coord[0][0] - band->coord[0][0]; + y = cblk->coord[1][0] - band->coord[1][0]; if (codsty->transform == FF_DWT97) dequantization_float(x, y, cblk, comp, &t1, band); |