projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
25f280f
)
src/io/source_wavread.c: also exit if samplerate is negative (closes #188)
author
Paul Brossier
<piem@piem.org>
Mon, 6 Aug 2018 12:04:48 +0000
(14:04 +0200)
committer
Paul Brossier
<piem@piem.org>
Mon, 6 Aug 2018 12:04:48 +0000
(14:04 +0200)
src/io/source_wavread.c
patch
|
blob
|
history
diff --git
a/src/io/source_wavread.c
b/src/io/source_wavread.c
index
b91eb5c
..
90638af
100644
(file)
--- a/
src/io/source_wavread.c
+++ b/
src/io/source_wavread.c
@@
-195,8
+195,8
@@
aubio_source_wavread_t * new_aubio_source_wavread(const char_t * path, uint_t sa
goto beach;
}
- if (
sr =
= 0 ) {
- AUBIO_ERR("source_wavread: Failed opening %s (samplerate can not be 0)\n", s->path);
+ if (
(sint_t)sr <
= 0 ) {
+ AUBIO_ERR("source_wavread: Failed opening %s (samplerate can not be
<=
0)\n", s->path);
goto beach;
}