mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 10:22:10 +00:00
jpeg2000dec: merge sgnd fix from j2k
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5dbbb762e5
commit
192050d7a7
@ -185,7 +185,7 @@ static int get_siz(Jpeg2000DecoderContext *s)
|
||||
uint8_t x = bytestream2_get_byteu(&s->g);
|
||||
s->cbps[i] = (x & 0x7f) + 1;
|
||||
s->precision = FFMAX(s->cbps[i], s->precision);
|
||||
s->sgnd[i] = (x & 0x80) == 1;
|
||||
s->sgnd[i] = !!(x & 0x80);
|
||||
s->cdx[i] = bytestream2_get_byteu(&s->g);
|
||||
s->cdy[i] = bytestream2_get_byteu(&s->g);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user