mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
jpeg2000: Correctly calculate sgnd
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
fd54dd028b
commit
ac921338a4
@ -198,7 +198,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