ref: a81b12a3b4174953b3bc7ef4c37103f4d5636740
parent: e8fcc9a9526fa67b11c795e14a2efb375addc3fe
author: Paul Brossier <piem@piem.org>
date: Mon Aug 6 10:58:27 EDT 2018
src/io/source_avcodec.c: give up if resampling context failed opening (see #137, closes #187)
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -275,6 +275,8 @@
// default to mono output
aubio_source_avcodec_reset_resampler(s, 0);
+ if (s->avr == NULL) goto beach;
+
s->eof = 0;
s->multi = 0;