aac: fix SCE in stereo case, this is surprisingly actually needed
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 21 May 2012 13:38:41 +0000 (15:38 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 21 May 2012 18:43:00 +0000 (20:43 +0200)
Fixes Ticket513

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/aacdec.c

index 391c845..b002f14 100644 (file)
@@ -489,7 +489,7 @@ static ChannelElement *get_che(AACContext *ac, int type, int elem_id)
         ac->oc[1].m4ac.chan_config = 2;
     }
     // And vice-versa
-    if (!ac->tags_mapped && type == TYPE_SCE && ac->oc[1].m4ac.chan_config == 2 && 0) {
+    if (!ac->tags_mapped && type == TYPE_SCE && ac->oc[1].m4ac.chan_config == 2) {
         uint8_t layout_map[MAX_ELEM_ID*4][3];
         int layout_map_tags;
         push_output_configuration(ac);