changeset 10687:d55c821b147a libavcodec

Use enum and constant to avoid three icc warnings.
author cehoyos
date Tue, 15 Dec 2009 15:57:18 +0000
parents 7fd8e33acaab
children 750102456f00
files aac.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/aac.c	Tue Dec 15 13:46:42 2009 +0000
+++ b/aac.c	Tue Dec 15 15:57:18 2009 +0000
@@ -1645,8 +1645,9 @@
  */
 static void spectral_to_sample(AACContext *ac)
 {
-    int i, type;
-    for (type = 3; type >= 0; type--) {
+    enum RawDataBlockType type;
+    for (type = TYPE_LFE; type >= TYPE_SCE; type--) {
+        int i;
         for (i = 0; i < MAX_ELEM_ID; i++) {
             ChannelElement *che = ac->che[type][i];
             if (che) {