Skip to content

Commit

Permalink
src/io/source_avcodec.c: give up if resampling context failed opening…
Browse files Browse the repository at this point in the history
… (see #148, closes #187)
  • Loading branch information
piem committed Aug 6, 2018
1 parent e8fcc9a commit 06df247
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/io/source_avcodec.c
Expand Up @@ -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;

Expand Down

0 comments on commit 06df247

Please sign in to comment.