aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-16 22:55:17 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-16 23:09:09 +0100
commit37013fd018ae02679f177f42245f3e0e3c12d587 (patch)
tree2305cf9f44ff6b1901e5ba0688a0ed1303ba7b37
parentced26a2c653b5dfff19b12d66fb5035ded563dac (diff)
downloadffmpeg-37013fd018ae02679f177f42245f3e0e3c12d587.tar.gz
swresample/swresample-test: Add () to protect uint_rand() argument
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libswresample/swresample-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/swresample-test.c b/libswresample/swresample-test.c
index c0162cd646..8859e9412c 100644
--- a/libswresample/swresample-test.c
+++ b/libswresample/swresample-test.c
@@ -153,7 +153,7 @@ static void audiogen(void *data, enum AVSampleFormat sample_fmt,
unsigned static rnd;
#define PUT_SAMPLE set(data, ch, k, channels, sample_fmt, v);
-#define uint_rand(x) (x = x * 1664525 + 1013904223)
+#define uint_rand(x) ((x) = (x) * 1664525 + 1013904223)
#define dbl_rand(x) (uint_rand(x)*2.0 / (double)UINT_MAX - 1)
k = 0;