summaryrefslogtreecommitdiff
path: root/libavcodec/dss_sp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-19 22:29:02 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-19 22:29:02 +0100
commit4f1c1b26f23441f99690e01acea81d26c3d02590 (patch)
treeadc2d01200cea2687b2c5c7161279f3e4d41d1d1 /libavcodec/dss_sp.c
parentbe0cb7e053850b68aa21f4ebfe239f149e60cb5b (diff)
downloadffmpeg-4f1c1b26f23441f99690e01acea81d26c3d02590.tar.gz
avcodec/dss_sp: Protect DSS_SP_FORMULA() with a set of outside brackets
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dss_sp.c')
-rw-r--r--libavcodec/dss_sp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dss_sp.c b/libavcodec/dss_sp.c
index 2e8cc95b16..6f24b4482a 100644
--- a/libavcodec/dss_sp.c
+++ b/libavcodec/dss_sp.c
@@ -33,7 +33,7 @@
#define DSS_SP_FRAME_SIZE 42
#define DSS_SP_SAMPLE_COUNT (66 * SUBFRAMES)
-#define DSS_SP_FORMULA(a, b, c) ((((a) << 15) + (b) * (c)) + 0x4000) >> 15
+#define DSS_SP_FORMULA(a, b, c) (((((a) << 15) + (b) * (c)) + 0x4000) >> 15)
typedef struct DssSpSubframe {
int16_t gain;