Commit 30aa004f authored by Michael Niedermayer's avatar Michael Niedermayer

swr-test: allow randomizing mode differently each run.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bea3d19f
......@@ -24,6 +24,9 @@
#include "libavutil/audioconvert.h"
#include "libavutil/opt.h"
#include "swresample.h"
#undef time
#include "time.h"
#undef fprintf
#define SAMPLES 1000
......@@ -245,6 +248,10 @@ int main(int argc, char **argv){
return 0;
}
num_tests = strtol(argv[1], NULL, 0);
if(num_tests < 0) {
num_tests = -num_tests;
rand_seed = time(0);
}
if(num_tests<= 0 || num_tests>max_tests)
num_tests = max_tests;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment