From: Paul Brossier Date: Mon, 6 Aug 2018 12:58:27 +0000 (+0200) Subject: src/io/source_avcodec.c: give up if resampling context failed opening (see #137,... X-Git-Tag: 0.4.7~28^2~2 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=a81b12a3b4174953b3bc7ef4c37103f4d5636740;p=aubio.git src/io/source_avcodec.c: give up if resampling context failed opening (see #137, closes #187) --- diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c index 8197445c..6d8efa79 100644 --- 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;