[FFmpeg-soc] [soc]: r4242 - jpeg2000/j2kdec.c

jai_menon subversion at mplayerhq.hu
Tue Apr 28 16:32:55 CEST 2009


Author: jai_menon
Date: Tue Apr 28 16:32:55 2009
New Revision: 4242

Log:
Silence gcc warning : libavcodec/j2kdec.c:79: warning: suggest
parentheses around + or - inside shift.

Modified:
   jpeg2000/j2kdec.c

Modified: jpeg2000/j2kdec.c
==============================================================================
--- jpeg2000/j2kdec.c	Mon Apr 27 11:03:23 2009	(r4241)
+++ jpeg2000/j2kdec.c	Tue Apr 28 16:32:55 2009	(r4242)
@@ -76,7 +76,7 @@ typedef struct {
 static int get_bits(J2kDecoderContext *s, int n)
 {
     int res = 0;
-    if (s->buf_end - s->buf < (n - s->bit_index >> 8))
+    if ((s->buf_end - s->buf) < (n - s->bit_index >> 8))
         return AVERROR(EINVAL);
     while (--n >= 0){
         res <<= 1;


More information about the FFmpeg-soc mailing list