From: Paul Brossier Date: Thu, 5 Dec 2013 13:05:35 +0000 (-0500) Subject: src/io/source_avcodec.c: increase max_analyze_duration X-Git-Tag: 0.4.0-beta1~52^2~18 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=6abb4deb79388539bc9266f623f06503810a3c74;p=aubio.git src/io/source_avcodec.c: increase max_analyze_duration --- diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c index 06aee0cd..124d8021 100644 --- a/src/io/source_avcodec.c +++ b/src/io/source_avcodec.c @@ -91,6 +91,9 @@ aubio_source_avcodec_t * new_aubio_source_avcodec(char_t * path, uint_t samplera goto beach; } + // try to make sure max_analyze_duration is big enough for most songs + avFormatCtx->max_analyze_duration *= 100; + // retrieve stream information if ( (err = avformat_find_stream_info(avFormatCtx, NULL)) < 0 ) { uint8_t errorstr_len = 128;