summaryrefslogtreecommitdiff
path: root/libavcodec/aac.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/aac.c')
-rw-r--r--libavcodec/aac.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/aac.c b/libavcodec/aac.c
index ae09d19ed2..c53d56813d 100644
--- a/libavcodec/aac.c
+++ b/libavcodec/aac.c
@@ -1645,9 +1645,8 @@ static void apply_channel_coupling(AACContext *ac, ChannelElement *cc,
*/
static void spectral_to_sample(AACContext *ac)
{
- enum RawDataBlockType type;
- for (type = TYPE_LFE; type >= TYPE_SCE; type--) {
- int i;
+ int i, type;
+ for (type = 3; type >= 0; type--) {
for (i = 0; i < MAX_ELEM_ID; i++) {
ChannelElement *che = ac->che[type][i];
if (che) {