avcodec/aacenc: use enum for aac coder.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 12 Sep 2013 15:25:30 +0000 (17:25 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 12 Sep 2013 15:25:30 +0000 (17:25 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/aacenc.h

index 19e442a..ecd6811 100644 (file)
 #include "audio_frame_queue.h"
 #include "psymodel.h"
 
-#define AAC_CODER_FAAC    0
-#define AAC_CODER_ANMR    1
-#define AAC_CODER_TWOLOOP 2
-#define AAC_CODER_FAST    3
-
-#define AAC_CODER_NB      4
+typedef enum AACCoder {
+    AAC_CODER_FAAC = 0,
+    AAC_CODER_ANMR,
+    AAC_CODER_TWOLOOP,
+    AAC_CODER_FAST,
+
+    AAC_CODER_NB,
+}AACCoder;
 
 typedef struct AACEncOptions {
     int stereo_mode;