projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
242e923
)
[tests] fix argument parsing in source
author
Paul Brossier
<piem@piem.org>
Thu, 29 Nov 2018 17:39:02 +0000
(18:39 +0100)
committer
Paul Brossier
<piem@piem.org>
Thu, 29 Nov 2018 17:39:02 +0000
(18:39 +0100)
tests/src/io/test-source.c
patch
|
blob
|
history
diff --git
a/tests/src/io/test-source.c
b/tests/src/io/test-source.c
index
55752ea
..
66471dc
100644
(file)
--- a/
tests/src/io/test-source.c
+++ b/
tests/src/io/test-source.c
@@
-22,8
+22,8
@@
int main (int argc, char **argv)
uint_t samplerate = 0;
uint_t hop_size = 256;
uint_t n_frames = 0, read = 0;
- if ( argc
=
= 3 ) samplerate = atoi(argv[2]);
- if ( argc
=
= 4 ) hop_size = atoi(argv[3]);
+ if ( argc
>
= 3 ) samplerate = atoi(argv[2]);
+ if ( argc
>
= 4 ) hop_size = atoi(argv[3]);
char_t *source_path = argv[1];