# HG changeset patch # User Chris Cannam # Date 1234286670 0 # Node ID a40023bebd15d9e28290bd42695fdecac38088eb # Parent 53e5dc8439e71f8a061ba56f0150c777f72470fe * Fix crash when processing a file that is shorter than a single block diff -r 53e5dc8439e7 -r a40023bebd15 transform/FeatureExtractionModelTransformer.cpp --- 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