shithub: aacdec

Download patch

ref: 19834178b65d4b28d731c6abffbcfe8c38594afe
parent: 758d6529393420352cbfd10785a14ea2b79a6488
author: ca5e <ca5e>
date: Sun Oct 19 15:18:53 EDT 2003

Fix for gapless mp4 decoding

--- a/frontend/main.c
+++ b/frontend/main.c
@@ -22,7 +22,7 @@
 ** Commercial non-GPL licensing of this software is possible.
 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
 **
-** $Id: main.c,v 1.54 2003/10/19 18:49:38 menno Exp $
+** $Id: main.c,v 1.55 2003/10/19 19:18:53 ca5e Exp $
 **/
 
 #ifdef _WIN32
@@ -893,7 +893,7 @@
 
         if (!noGapless)
         {
-            if (sampleId == 1) dur = 0;
+            if (sampleId == 0) dur = 0;
 
             if (useAacLength || (timescale != samplerate)) {
                 sample_count = frameInfo.samples;