summaryrefslogtreecommitdiff
path: root/libavcodec/aacdec.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-10-30 00:52:01 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-04 09:28:45 -0500
commit77ab341c0c6cdf2bd437bb48d429e797d1e60da2 (patch)
treeb50374baa2440db5ac180a29da3f795197dd9dd3 /libavcodec/aacdec.c
parent930ffd46e1e742674aa7cc1c2450020c63b5015b (diff)
aacdec: add default case in channel layout
Bug-Id: CID 732291
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r--libavcodec/aacdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 4bdf52fc66..d2d51f5956 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -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);