small fix for aacplus encoder without libsamplerate

This commit is contained in:
rafael@riseup.net 2011-04-07 02:45:36 +00:00
parent bb41e5c65c
commit db68789aec
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ aacPlusEncoder :: open ( void )
#else
converter->initialize( resampleRatio, getInChannel());
//needed 2x(converted input samples) to handle offsets
int outCount = 2 * getInChannel() * (inSamples + 1);
int outCount = 2 * getInChannel() * (inputSamples + 1);
if (resampleRatio > 1)
outCount = (int) (outCount * resampleRatio);
resampledOffset = new short int[outCount];