Author: jai_menon
Date: Tue Apr 28 16:45:39 2009
New Revision: 4244

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   Tue Apr 28 16:44:08 2009        (r4243)
+++ jpeg2000/j2kdec.c   Tue Apr 28 16:45:39 2009        (r4244)
@@ -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;
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to