[FFmpeg-cvslog] avcodec/aacenc: use enum for aac coder.
Michael Niedermayer
git at videolan.org
Thu Sep 12 17:30:46 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep 12 17:25:30 2013 +0200| [16837f9846c56b7aab48bf409c1127cc665b6fb5] | committer: Michael Niedermayer
avcodec/aacenc: use enum for aac coder.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=16837f9846c56b7aab48bf409c1127cc665b6fb5
---
libavcodec/aacenc.h | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h
index 19e442a..ecd6811 100644
--- a/libavcodec/aacenc.h
+++ b/libavcodec/aacenc.h
@@ -30,12 +30,14 @@
#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;
More information about the ffmpeg-cvslog
mailing list