aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-25 05:19:09 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-25 16:35:24 +0200
commit3c169251eec2f4786f54187867eb45277a9eeca4 (patch)
tree5d43c1d4a6cab6db7f483396d22b66b25def529a
parent81a2740919aed28372ccecfad937c5dfb4b13b53 (diff)
downloadffmpeg-3c169251eec2f4786f54187867eb45277a9eeca4.tar.gz
avcodec/mss4: Fix () in MKVAL() macro
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit cf7ff0146c76b93c32edf5230a28b9590acf5105) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mss4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mss4.c b/libavcodec/mss4.c
index c518fda3ae..583dfabfd8 100644
--- a/libavcodec/mss4.c
+++ b/libavcodec/mss4.c
@@ -364,7 +364,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.
*