src/io/source_avcodec.c: give up if resampling context failed opening (see #137,...
authorPaul Brossier <piem@piem.org>
Mon, 6 Aug 2018 12:58:27 +0000 (14:58 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 6 Aug 2018 12:58:27 +0000 (14:58 +0200)
src/io/source_avcodec.c

index 8197445..6d8efa7 100644 (file)
@@ -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;