Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
30aa004f
Commit
30aa004f
authored
May 01, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr-test: allow randomizing mode differently each run.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bea3d19f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
swresample_test.c
libswresample/swresample_test.c
+7
-0
No files found.
libswresample/swresample_test.c
View file @
30aa004f
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment