shithub: aubio

Download patch

ref: 6abb4deb79388539bc9266f623f06503810a3c74
parent: 23bf0018a7a50b642c06204a8bb66fe69ddbbcce
author: Paul Brossier <piem@piem.org>
date: Thu Dec 5 03:05:35 EST 2013

src/io/source_avcodec.c: increase max_analyze_duration

--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -91,6 +91,9 @@
     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;