[SCM] libav/experimental: mpegaudio: enclose SUM8() macro args in parens when used
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:45:19 UTC 2013
The following commit has been merged in the experimental branch:
commit 1e24f1b25d08659f84a9c8fbb2789d3469daa0b9
Author: Måns Rullgård <mans at mansr.com>
Date: Tue May 5 18:44:13 2009 +0000
mpegaudio: enclose SUM8() macro args in parens when used
Originally committed as revision 18746 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index 4c0d34a..a2158bc 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -780,14 +780,14 @@ static inline int round_sample(int64_t *sum)
#define SUM8(op, sum, w, p) \
{ \
- op(sum, (w)[0 * 64], p[0 * 64]); \
- op(sum, (w)[1 * 64], p[1 * 64]); \
- op(sum, (w)[2 * 64], p[2 * 64]); \
- op(sum, (w)[3 * 64], p[3 * 64]); \
- op(sum, (w)[4 * 64], p[4 * 64]); \
- op(sum, (w)[5 * 64], p[5 * 64]); \
- op(sum, (w)[6 * 64], p[6 * 64]); \
- op(sum, (w)[7 * 64], p[7 * 64]); \
+ op(sum, (w)[0 * 64], (p)[0 * 64]); \
+ op(sum, (w)[1 * 64], (p)[1 * 64]); \
+ op(sum, (w)[2 * 64], (p)[2 * 64]); \
+ op(sum, (w)[3 * 64], (p)[3 * 64]); \
+ op(sum, (w)[4 * 64], (p)[4 * 64]); \
+ op(sum, (w)[5 * 64], (p)[5 * 64]); \
+ op(sum, (w)[6 * 64], (p)[6 * 64]); \
+ op(sum, (w)[7 * 64], (p)[7 * 64]); \
}
#define SUM8P2(sum1, op1, sum2, op2, w1, w2, p) \
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list