small fix for aacplus encoder without libsamplerate
This commit is contained in:
parent
bb41e5c65c
commit
db68789aec
|
@ -114,7 +114,7 @@ aacPlusEncoder :: open ( void )
|
||||||
#else
|
#else
|
||||||
converter->initialize( resampleRatio, getInChannel());
|
converter->initialize( resampleRatio, getInChannel());
|
||||||
//needed 2x(converted input samples) to handle offsets
|
//needed 2x(converted input samples) to handle offsets
|
||||||
int outCount = 2 * getInChannel() * (inSamples + 1);
|
int outCount = 2 * getInChannel() * (inputSamples + 1);
|
||||||
if (resampleRatio > 1)
|
if (resampleRatio > 1)
|
||||||
outCount = (int) (outCount * resampleRatio);
|
outCount = (int) (outCount * resampleRatio);
|
||||||
resampledOffset = new short int[outCount];
|
resampledOffset = new short int[outCount];
|
||||||
|
|
Loading…
Reference in New Issue