summaryrefslogtreecommitdiff
path: root/libavcodec/msvideo1enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-25 19:26:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-25 19:26:37 +0200
commit9babf13764dd42d30eda64ef5c0779cf3931c70f (patch)
tree568f14c675910c46d13057088b70c2bee6357b81 /libavcodec/msvideo1enc.c
parenteb718f4c532c21cb33e3c85581628f6def9710e0 (diff)
avcodec/msvideo1enc: Fix () in MKRGB555() macro
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/msvideo1enc.c')
-rw-r--r--libavcodec/msvideo1enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/msvideo1enc.c b/libavcodec/msvideo1enc.c
index b27eadf06b..6852c9868c 100644
--- a/libavcodec/msvideo1enc.c
+++ b/libavcodec/msvideo1enc.c
@@ -58,7 +58,7 @@ enum MSV1Mode{
#define SKIP_PREFIX 0x8400
#define SKIPS_MAX 0x03FF
-#define MKRGB555(in, off) ((in[off] << 10) | (in[off + 1] << 5) | (in[off + 2]))
+#define MKRGB555(in, off) (((in)[off] << 10) | ((in)[(off) + 1] << 5) | ((in)[(off) + 2]))
static const int remap[16] = { 0, 1, 4, 5, 2, 3, 6, 7, 8, 9, 12, 13, 10, 11, 14, 15 };