src/io/source_avcodec.c: increase max_analyze_duration
authorPaul Brossier <piem@piem.org>
Thu, 5 Dec 2013 13:05:35 +0000 (08:05 -0500)
committerPaul Brossier <piem@piem.org>
Thu, 5 Dec 2013 13:05:35 +0000 (08:05 -0500)
src/io/source_avcodec.c

index 06aee0c..124d802 100644 (file)
@@ -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;