ffmpeg | branch: master | Michael Niedermayer <[email protected]> | 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 <[email protected]> > 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; _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
