[FFmpeg-cvslog] j2kdec: fix 10l typo in initializing sgnd.
Michael Niedermayer
git at videolan.org
Fri Nov 18 02:45:27 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 18 02:35:49 2011 +0100| [640424e080cbff3733706321d05c32eb7c87b90b] | committer: Michael Niedermayer
j2kdec: fix 10l typo in initializing sgnd.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=640424e080cbff3733706321d05c32eb7c87b90b
---
libavcodec/j2kdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 0fb1600..1f4acc5 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -227,7 +227,7 @@ static int get_siz(J2kDecoderContext *s)
uint8_t x = bytestream_get_byte(&s->buf);
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] = bytestream_get_byte(&s->buf);
s->cdy[i] = bytestream_get_byte(&s->buf);
}
More information about the ffmpeg-cvslog
mailing list