shithub: aacdec

Download patch

ref: 450fed9d988ef8dad6819df9ca6da7cbb0f4d82f
parent: 876a4ad85ff46d98b907bc051290f1e2ece556cf
author: menno <menno>
date: Mon Sep 16 07:07:04 EDT 2002

Fix in LTP decoding

--- a/libfaad/decoder.c
+++ b/libfaad/decoder.c
@@ -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: decoder.c,v 1.33 2002/09/13 13:08:45 menno Exp $
+** $Id: decoder.c,v 1.34 2002/09/16 11:07:04 menno Exp $
 **/
 
 #include <stdlib.h>
@@ -683,7 +683,10 @@
                 right_channel = 0;
             } else if (syntax_elements[i]->paired_channel == ch) {
                 ics = &(syntax_elements[i]->ics2);
-                ltp = &(ics->ltp2);
+                if (syntax_elements[i]->common_window)
+                    ltp = &(ics->ltp2);
+                else
+                    ltp = &(ics->ltp);
                 right_channel = 1;
             }
         }