changeset 9251:3fc2f6c6b684 libavcodec

AAC: Ignore cc_domain for independent (time domain) coupling.
author alexc
date Mon, 23 Mar 2009 05:13:26 +0000
parents ce6204c184c1
children fff66291d84d
files aac.c
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/aac.c	Sun Mar 22 23:42:06 2009 +0000
+++ b/aac.c	Mon Mar 23 05:13:26 2009 +0000
@@ -1199,14 +1199,7 @@
         } else
             coup->ch_select[c] = 2;
     }
-    coup->coupling_point += get_bits1(gb);
-
-    if (coup->coupling_point == 2) {
-        av_log(ac->avccontext, AV_LOG_ERROR,
-            "Independently switched CCE with 'invalid' domain signalled.\n");
-        memset(coup, 0, sizeof(ChannelCoupling));
-        return -1;
-    }
+    coup->coupling_point += get_bits1(gb) || (coup->coupling_point>>1);
 
     sign = get_bits(gb, 1);
     scale = pow(2., pow(2., (int)get_bits(gb, 2) - 3));