diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-31 01:49:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-31 03:10:07 +0200 |
commit | 192050d7a7d57ae289a72c39710048e481c52337 (patch) | |
tree | f2a4fe91a3948ab3d83ce036984402463a3bbc5e /libavcodec/jpeg2000dec.c | |
parent | 5dbbb762e58c8c410cfdfbb25d89f8b8314164e7 (diff) | |
download | ffmpeg-192050d7a7d57ae289a72c39710048e481c52337.tar.gz |
jpeg2000dec: merge sgnd fix from j2k
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 e70b5cef00..abd93ef7cf 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -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); } |