mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
swresample/swresample-test: Add () to protect uint_rand() argument
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ced26a2c65
commit
37013fd018
@ -153,7 +153,7 @@ static void audiogen(void *data, enum AVSampleFormat sample_fmt,
|
|||||||
unsigned static rnd;
|
unsigned static rnd;
|
||||||
|
|
||||||
#define PUT_SAMPLE set(data, ch, k, channels, sample_fmt, v);
|
#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)
|
#define dbl_rand(x) (uint_rand(x)*2.0 / (double)UINT_MAX - 1)
|
||||||
k = 0;
|
k = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user