shithub: aacdec

Download patch

ref: 9a9fa10c760b59e48c567d408de3878498755f84
parent: 44c7b98d129afe60aac5bf8a688902a67623c27f
author: menno <menno>
date: Wed Aug 7 09:57:41 EDT 2002

Removed useless duplication of code

--- a/libfaad/syntax.c
+++ b/libfaad/syntax.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: syntax.c,v 1.22 2002/08/07 11:23:43 menno Exp $
+** $Id: syntax.c,v 1.23 2002/08/07 13:57:41 menno Exp $
 **/
 
 /*
@@ -696,6 +696,16 @@
             return result;
     }
 
+    if ((object_type >= ER_OBJECT_START) 
+#ifdef DRM
+        && (object_type != DRM_ER_LC)
+#endif
+        )
+    {
+        if (ics->tns_data_present)
+            tns_data(ics, &(ics->tns), ld);
+    }
+
     if (aacSpectralDataResilienceFlag)
     {
         if (ics->tns_data_present)
@@ -708,17 +718,6 @@
             return result;
         }
     } else {
-
-        if ((object_type >= ER_OBJECT_START) 
-#ifdef DRM
-            && (object_type != DRM_ER_LC)
-#endif
-            )
-        {
-            if (ics->tns_data_present)
-                tns_data(ics, &(ics->tns), ld);
-        }
-
 #endif
         /* decode the spectral data */
         if ((result = spectral_data(ics, ld, spec_data, frame_len)) > 0)