[FFmpeg-soc] [soc]: r1972 - aac/aac.c

andoma subversion at mplayerhq.hu
Wed Mar 5 15:19:20 CET 2008


Author: andoma
Date: Wed Mar  5 15:19:20 2008
New Revision: 1972

Log:
Get rid of an assert() and replace it with av_log() + return;



Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Wed Mar  5 15:19:20 2008
@@ -2020,7 +2020,11 @@ static void coupling_dependent_trans(AAC
     float * dest = sce->coeffs;
     float * src = cc->ch.coeffs;
     int g, i, group, k;
-    assert(ac->audioObjectType != AOT_AAC_LTP);
+    if(ac->audioObjectType == AOT_AAC_LTP) {
+        av_log(ac->avccontext, AV_LOG_ERROR,
+               "Dependent coupling is not supported together with LTP\n");
+        return;
+    }
     for (g = 0; g < ics->num_window_groups; g++) {
         for (i = 0; i < ics->max_sfb; i++) {
             if (cc->ch.cb[g][i] != ZERO_HCB) {



More information about the FFmpeg-soc mailing list