aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wavpack.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-18 02:54:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-18 03:13:36 +0200
commit28bf11150346cede3a65f5a00e12cc265e0ccd5a (patch)
treed72ecc296c98f9950fa1a6ec0619e631480d7d4a /libavcodec/wavpack.h
parentd9a61ae31e8c55badd581f241c6d8c15ef8a49ce (diff)
downloadffmpeg-28bf11150346cede3a65f5a00e12cc265e0ccd5a.tar.gz
avcodec/wavpack: fix () in macros
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/wavpack.h')
-rw-r--r--libavcodec/wavpack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wavpack.h b/libavcodec/wavpack.h
index 081b7f714d..3a3e8dbd2e 100644
--- a/libavcodec/wavpack.h
+++ b/libavcodec/wavpack.h
@@ -99,8 +99,8 @@ typedef struct WvChannel {
// macros for manipulating median values
#define GET_MED(n) ((c->median[n] >> 4) + 1)
-#define DEC_MED(n) c->median[n] -= ((c->median[n] + (128 >> n) - 2) / (128 >> n)) * 2
-#define INC_MED(n) c->median[n] += ((c->median[n] + (128 >> n) ) / (128 >> n)) * 5
+#define DEC_MED(n) c->median[n] -= ((c->median[n] + (128 >> (n)) - 2) / (128 >> (n))) * 2
+#define INC_MED(n) c->median[n] += ((c->median[n] + (128 >> (n)) ) / (128 >> (n))) * 5
// macros for applying weight
#define UPDATE_WEIGHT_CLIP(weight, delta, samples, in) \