git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ced26a2
)
swresample/swresample-test: Add () to protect uint_rand() argument
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 16 Feb 2015 21:55:17 +0000
(22:55 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 16 Feb 2015 22:09:09 +0000
(23:09 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample-test.c
patch
|
blob
|
history
diff --git
a/libswresample/swresample-test.c
b/libswresample/swresample-test.c
index
c0162cd
..
8859e94
100644
(file)
--- 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;