Mercurial > hg > svcore
changeset 557:a40023bebd15
* Fix crash when processing a file that is shorter than a single block
author | Chris Cannam |
---|---|
date | Tue, 10 Feb 2009 17:24:30 +0000 |
parents | 53e5dc8439e7 |
children | 1d7ebc05157e |
files | transform/FeatureExtractionModelTransformer.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/transform/FeatureExtractionModelTransformer.cpp Mon Feb 09 11:53:29 2009 +0000 +++ b/transform/FeatureExtractionModelTransformer.cpp Tue Feb 10 17:24:30 2009 +0000 @@ -472,7 +472,7 @@ long completion = (((blockFrame - contextStart) / stepSize) * 99) / - (contextDuration / stepSize); + (contextDuration / stepSize + 1); // channelCount is either m_input.getModel()->channelCount or 1