aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-31 01:49:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-31 03:10:07 +0200
commit192050d7a7d57ae289a72c39710048e481c52337 (patch)
treef2a4fe91a3948ab3d83ce036984402463a3bbc5e /libavcodec
parent5dbbb762e58c8c410cfdfbb25d89f8b8314164e7 (diff)
downloadffmpeg-192050d7a7d57ae289a72c39710048e481c52337.tar.gz
jpeg2000dec: merge sgnd fix from j2k
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/jpeg2000dec.c2
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);
}