[FFmpeg-cvslog] avcodec/mss4: Fix () in MKVAL() macro

Michael Niedermayer git at videolan.org
Mon Jun 23 18:52:57 CEST 2014


ffmpeg | branch: release/1.2 | Michael Niedermayer <michaelni at gmx.at> | Sun May 25 05:19:09 2014 +0200| [d13cf32099faa419a4e0e1b7722d98411b0b2586] | committer: Michael Niedermayer

avcodec/mss4: Fix () in MKVAL() macro

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit cf7ff0146c76b93c32edf5230a28b9590acf5105)

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

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

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

diff --git a/libavcodec/mss4.c b/libavcodec/mss4.c
index 977e1e5..f2a8aa6 100644
--- a/libavcodec/mss4.c
+++ b/libavcodec/mss4.c
@@ -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.
  *



More information about the ffmpeg-cvslog mailing list