jacksonlcrews / darkice

Automatically exported from code.google.com/p/darkice
0 stars 0 forks source link

HEAD does not compile with AACPLUS without LIBSAMPLERATE +FIX #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile with aacplus-2 without libresample
2.
3.

What is the expected output? What do you see instead?
- compile to success

What version of the product are you using? On what operating system?
- HEAD 1.0.1

Please provide any additional information below.

- typo in src/aacPlusEncoder.cpp inSamples/inputSamples

FIX IS HERE

diff -u ../darkice-0.20.1/src/aacPlusEncoder.cpp src/aacPlusEncoder.cpp
--- ../darkice-0.20.1/src/aacPlusEncoder.cpp    2010-11-18 17:56:12.000000000 +0100
+++ src/aacPlusEncoder.cpp  2010-12-27 15:01:55.266664112 +0100
@@ -114,7 +114,7 @@
 #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];

Original issue reported on code.google.com by oetelaar.automatisering on 27 Dec 2010 at 2:12

GoogleCodeExporter commented 9 years ago
Issue 46 has been merged into this issue.

Original comment by rafael2k...@gmail.com on 16 Jan 2012 at 9:03

GoogleCodeExporter commented 9 years ago
Already applied.

Original comment by rafael2k...@gmail.com on 14 May 2013 at 3:58