Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2011/11/18 10:35:49... | ... |
@@ -227,7 +227,7 @@ static int get_siz(J2kDecoderContext *s) |
227 | 227 |
uint8_t x = bytestream_get_byte(&s->buf); |
228 | 228 |
s->cbps[i] = (x & 0x7f) + 1; |
229 | 229 |
s->precision = FFMAX(s->cbps[i], s->precision); |
230 |
- s->sgnd[i] = (x & 0x80) == 1; |
|
230 |
+ s->sgnd[i] = !!(x & 0x80); |
|
231 | 231 |
s->cdx[i] = bytestream_get_byte(&s->buf); |
232 | 232 |
s->cdy[i] = bytestream_get_byte(&s->buf); |
233 | 233 |
} |