aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-18 03:00:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-18 03:13:37 +0200
commit0608bc65025a29b2ec56aa17dd76d76ed730be11 (patch)
treecd84e7e81e5e6771710e4cad4f70324726002f31
parentc89be82c986f02c504a45d1dfcb4ea5be644fb8e (diff)
downloadffmpeg-0608bc65025a29b2ec56aa17dd76d76ed730be11.tar.gz
swresample/audioconvert: fix () in FMT_PAIR_FUNC()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libswresample/audioconvert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/audioconvert.c b/libswresample/audioconvert.c
index 4ba0ff13b1..325bdf4de7 100644
--- a/libswresample/audioconvert.c
+++ b/libswresample/audioconvert.c
@@ -77,7 +77,7 @@ CONV_FUNC(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, av_clipl_int32(llrint(*
CONV_FUNC(AV_SAMPLE_FMT_FLT, float , AV_SAMPLE_FMT_DBL, *(const double*)pi)
CONV_FUNC(AV_SAMPLE_FMT_DBL, double , AV_SAMPLE_FMT_DBL, *(const double*)pi)
-#define FMT_PAIR_FUNC(out, in) [out + AV_SAMPLE_FMT_NB*in] = CONV_FUNC_NAME(out, in)
+#define FMT_PAIR_FUNC(out, in) [(out) + AV_SAMPLE_FMT_NB*(in)] = CONV_FUNC_NAME(out, in)
static conv_func_type * const fmt_pair_to_conv_functions[AV_SAMPLE_FMT_NB*AV_SAMPLE_FMT_NB] = {
FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8 , AV_SAMPLE_FMT_U8 ),