From b0bc928b8682c9c4cd1d09f4b928df61fc68bc07 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 16 Dec 2009 11:39:14 +0000 Subject: Undo r20874: It broke AAC decoding. Originally committed as revision 20879 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/aac.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libavcodec/aac.c') 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) { -- cgit v1.2.3