avcodec/mss4: Fix () in MKVAL() macro
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 25 May 2014 03:19:09 +0000 (05:19 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 25 May 2014 03:19:09 +0000 (05:19 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mss4.c

index efa0372..c5b8e07 100644 (file)
@@ -363,7 +363,7 @@ static int get_value_cached(GetBitContext *gb, int vec_pos, uint8_t *vec,
     return prev[component];
 }
 
-#define MKVAL(vals)  (vals[0] | (vals[1] << 3) | (vals[2] << 6))
+#define MKVAL(vals)  ((vals)[0] | ((vals)[1] << 3) | ((vals)[2] << 6))
 
 /* Image mode - the hardest to comprehend MSS4 coding mode.
  *