Commit 640424e0 authored by Michael Niedermayer's avatar Michael Niedermayer

j2kdec: fix 10l typo in initializing sgnd.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 856b33f5
...@@ -227,7 +227,7 @@ static int get_siz(J2kDecoderContext *s) ...@@ -227,7 +227,7 @@ static int get_siz(J2kDecoderContext *s)
uint8_t x = bytestream_get_byte(&s->buf); uint8_t x = bytestream_get_byte(&s->buf);
s->cbps[i] = (x & 0x7f) + 1; s->cbps[i] = (x & 0x7f) + 1;
s->precision = FFMAX(s->cbps[i], s->precision); s->precision = FFMAX(s->cbps[i], s->precision);
s->sgnd[i] = (x & 0x80) == 1; s->sgnd[i] = !!(x & 0x80);
s->cdx[i] = bytestream_get_byte(&s->buf); s->cdx[i] = bytestream_get_byte(&s->buf);
s->cdy[i] = bytestream_get_byte(&s->buf); s->cdy[i] = bytestream_get_byte(&s->buf);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment