aacdec: add default case in channel layout
authorVittorio Giovara <vittorio.giovara@gmail.com>
Thu, 30 Oct 2014 00:52:01 +0000 (00:52 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 4 Nov 2014 14:28:45 +0000 (09:28 -0500)
Bug-Id: CID 732291

libavcodec/aacdec.c

index 4bdf52f..d2d51f5 100644 (file)
@@ -624,6 +624,9 @@ static void decode_channel_map(uint8_t layout_map[][3],
         case AAC_CHANNEL_LFE:
             syn_ele = TYPE_LFE;
             break;
+        default:
+            // AAC_CHANNEL_OFF has no channel map
+            return;
         }
         layout_map[0][0] = syn_ele;
         layout_map[0][1] = get_bits(gb, 4);