From db68789aec6f099e17e2413012bd0b98164e8736 Mon Sep 17 00:00:00 2001 From: "rafael@riseup.net" Date: Thu, 7 Apr 2011 02:45:36 +0000 Subject: [PATCH] small fix for aacplus encoder without libsamplerate --- darkice/trunk/src/aacPlusEncoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darkice/trunk/src/aacPlusEncoder.cpp b/darkice/trunk/src/aacPlusEncoder.cpp index c0eb45f..2db01f8 100644 --- a/darkice/trunk/src/aacPlusEncoder.cpp +++ b/darkice/trunk/src/aacPlusEncoder.cpp @@ -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];