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:
e8fcc9a
)
src/io/source_avcodec.c: give up if resampling context failed opening (see #137,...
author
Paul Brossier
<piem@piem.org>
Mon, 6 Aug 2018 12:58:27 +0000
(14:58 +0200)
committer
Paul Brossier
<piem@piem.org>
Mon, 6 Aug 2018 12:58:27 +0000
(14:58 +0200)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
8197445
..
6d8efa7
100644
(file)
--- a/
src/io/source_avcodec.c
+++ b/
src/io/source_avcodec.c
@@
-275,6
+275,8
@@
aubio_source_avcodec_t * new_aubio_source_avcodec(const char_t * path, uint_t sa
// default to mono output
aubio_source_avcodec_reset_resampler(s, 0);
+ if (s->avr == NULL) goto beach;
+
s->eof = 0;
s->multi = 0;