[FFmpeg-cvslog] swresample/swresample-test: Add () to protect uint_rand() argument
Michael Niedermayer
git at videolan.org
Mon Feb 16 23:10:10 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb 16 22:55:17 2015 +0100| [37013fd018ae02679f177f42245f3e0e3c12d587] | committer: Michael Niedermayer
swresample/swresample-test: Add () to protect uint_rand() argument
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=37013fd018ae02679f177f42245f3e0e3c12d587
---
libswresample/swresample-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswresample/swresample-test.c b/libswresample/swresample-test.c
index c0162cd..8859e94 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;
More information about the ffmpeg-cvslog
mailing list