mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 05:55:07 +00:00
j2kdec: remove unneeded operation
Fixes CID717554 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1e6cbb01e9
commit
bc077ca6b5
@ -836,7 +836,7 @@ static int decode_tile(J2kDecoderContext *s, J2kTile *tile)
|
||||
int *ptr = t1.data[y-yy0];
|
||||
for (x = xx0; x < xx1; x+=s->cdx[compno]){
|
||||
int tmp = ((int64_t)*ptr++) * ((int64_t)band->stepsize) >> 13, tmp2;
|
||||
tmp2 = FFABS(tmp>>1) + FFABS(tmp&1);
|
||||
tmp2 = FFABS(tmp>>1) + (tmp&1);
|
||||
comp->data[(comp->coord[0][1] - comp->coord[0][0]) * y + x] = tmp < 0 ? -tmp2 : tmp2;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user