X-Git-Url: https://git.aubio.org/?p=aubio.git;a=blobdiff_plain;f=src%2Fio%2Fsource_avcodec.c;h=ccdce80726aded0d8382265a486fe694ae2803b6;hp=c6fee2f994e7198608dfc97e7d308942b508bcc9;hb=c3e98d76d6794bdf6b683272ea857af58ef857ae;hpb=930bfece03ef3b07503c848aba666a7dbe79def9 diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c index c6fee2f9..ccdce807 100644 --- a/src/io/source_avcodec.c +++ b/src/io/source_avcodec.c @@ -313,15 +313,15 @@ void aubio_source_avcodec_reset_resampler(aubio_source_avcodec_t * s, uint_t mul // TODO: use planar? //av_opt_set_int(avr, "out_sample_fmt", AV_SAMPLE_FMT_FLTP, 0); #ifdef HAVE_AVRESAMPLE - if ( ( err = avresample_open(avr) ) < 0) { + if ( ( err = avresample_open(avr) ) < 0) #elif defined(HAVE_SWRESAMPLE) - if ( ( err = swr_init(avr) ) < 0) { + if ( ( err = swr_init(avr) ) < 0) #endif /* HAVE_AVRESAMPLE || HAVE_SWRESAMPLE */ + { char errorstr[256]; av_strerror (err, errorstr, sizeof(errorstr)); - AUBIO_ERR("source_avcodec: Could not open AVAudioResampleContext for %s (%s)\n", + AUBIO_ERR("source_avcodec: Could not open resampling context for %s (%s)\n", s->path, errorstr); - //goto beach; return; } s->avr = avr;