shithub: aacdec

Download patch

ref: 2bc0f84e01dfb29b9253d7b7313a0f0bd619f5a1
parent: 94641c20ec3a009c19c256d7a3f751bef7eca4dc
author: menno <menno>
date: Sat Apr 26 08:25:23 EDT 2003

no message

--- a/plugins/foo_mp4/foo_mp4.cpp
+++ b/plugins/foo_mp4/foo_mp4.cpp
@@ -16,7 +16,7 @@
 ** along with this program; if not, write to the Free Software
 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 **
-** $Id: foo_mp4.cpp,v 1.18 2003/04/26 10:02:42 menno Exp $
+** $Id: foo_mp4.cpp,v 1.19 2003/04/26 12:25:23 menno Exp $
 **/
 
 #include <mp4.h>
@@ -34,7 +34,7 @@
 }
 
 DECLARE_COMPONENT_VERSION ("MPEG-4 AAC decoder",
-                           STRIP_REVISION("$Revision: 1.18 $"),
+                           STRIP_REVISION("$Revision: 1.19 $"),
                            "Based on FAAD2 v" FAAD2_VERSION "\nCopyright (C) 2002-2003 http://www.audiocoding.com" );
 
 class input_mp4 : public input
@@ -350,7 +350,7 @@
             sample_buffer = faacDecDecode(hDecoder, &frameInfo,
                 m_aac_buffer, m_aac_bytes_into_buffer);
 
-            m_aac_bytes_consumed += frameInfo.bytesconsumed;
+            m_aac_bytes_consumed = frameInfo.bytesconsumed;
             m_aac_bytes_into_buffer -= frameInfo.bytesconsumed;
 
         } while (!frameInfo.samples && !frameInfo.error);