[FFmpeg-cvslog] avcodec/msvideo1enc: Fix () in MKRGB555() macro

Michael Niedermayer git at videolan.org
Sun May 25 19:35:53 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 25 19:26:37 2014 +0200| [9babf13764dd42d30eda64ef5c0779cf3931c70f] | committer: Michael Niedermayer

avcodec/msvideo1enc: Fix () in MKRGB555() macro

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9babf13764dd42d30eda64ef5c0779cf3931c70f
---

 libavcodec/msvideo1enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/msvideo1enc.c b/libavcodec/msvideo1enc.c
index b27eadf..6852c98 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 };
 



More information about the ffmpeg-cvslog mailing list