projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23bf001
)
src/io/source_avcodec.c: increase max_analyze_duration
author
Paul Brossier
<piem@piem.org>
Thu, 5 Dec 2013 13:05:35 +0000
(08:05 -0500)
committer
Paul Brossier
<piem@piem.org>
Thu, 5 Dec 2013 13:05:35 +0000
(08:05 -0500)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
06aee0c
..
124d802
100644
(file)
--- 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;