From 5dd930ab82e65cadf58cc66e6e603641b50b0b36 Mon Sep 17 00:00:00 2001 From: "alban.peignier@gmail.com" Date: Thu, 4 Apr 2013 04:52:37 +0000 Subject: [PATCH] Fixes values returned by FaacEncoder and aacPlusEncoder :: write (bytes instead of samples). Fixes #83 --- darkice/trunk/src/FaacEncoder.cpp | 3 +-- darkice/trunk/src/aacPlusEncoder.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/darkice/trunk/src/FaacEncoder.cpp b/darkice/trunk/src/FaacEncoder.cpp index 5c536e3..1100226 100644 --- a/darkice/trunk/src/FaacEncoder.cpp +++ b/darkice/trunk/src/FaacEncoder.cpp @@ -240,8 +240,7 @@ FaacEncoder :: write ( const void * buf, delete[] faacBuf; -// return processedSamples; - return samples; + return samples * sampleSize; } diff --git a/darkice/trunk/src/aacPlusEncoder.cpp b/darkice/trunk/src/aacPlusEncoder.cpp index 2db01f8..d4e7a5b 100644 --- a/darkice/trunk/src/aacPlusEncoder.cpp +++ b/darkice/trunk/src/aacPlusEncoder.cpp @@ -233,7 +233,7 @@ aacPlusEncoder :: write ( const void * buf, delete[] aacplusBuf; // return processedSamples; - return samples; + return samples * sampleSize; } /*------------------------------------------------------------------------------