From 6abb4deb79388539bc9266f623f06503810a3c74 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 5 Dec 2013 08:05:35 -0500 Subject: [PATCH] src/io/source_avcodec.c: increase max_analyze_duration --- src/io/source_avcodec.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.11.0