From 16837f9846c56b7aab48bf409c1127cc665b6fb5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 12 Sep 2013 17:25:30 +0200 Subject: [PATCH] avcodec/aacenc: use enum for aac coder. Signed-off-by: Michael Niedermayer --- libavcodec/aacenc.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h index 19e442a24b..ecd6811f31 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 +typedef enum AACCoder { + AAC_CODER_FAAC = 0, + AAC_CODER_ANMR, + AAC_CODER_TWOLOOP, + AAC_CODER_FAST, -#define AAC_CODER_NB 4 + AAC_CODER_NB, +}AACCoder; typedef struct AACEncOptions { int stereo_mode;