diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-01 10:01:09 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-07-02 20:05:44 +0200 |
commit | ac921338a4986d8cceece8e052dd4af60576d542 (patch) | |
tree | 7ece1c1292b24f1d6ffc98891eec0af7d444b40a /libavcodec/jpeg2000dec.c | |
parent | fd54dd028bc9f7bfb80ebf823a533dc84b73f936 (diff) | |
download | ffmpeg-ac921338a4986d8cceece8e052dd4af60576d542.tar.gz |
jpeg2000: Correctly calculate sgnd
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/jpeg2000dec.c')
-rw-r--r-- | libavcodec/jpeg2000dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index e1da04d0c6..8df6ee2df4 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -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); |