aacenc: add AAC_CODER_NB
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 27 Nov 2011 20:19:07 +0000 (21:19 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 27 Nov 2011 20:19:07 +0000 (21:19 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/aaccoder.c
libavcodec/aacenc.h

index 31d3b23..d6750a2 100644 (file)
@@ -1112,7 +1112,7 @@ static void search_for_ms(AACEncContext *s, ChannelElement *cpe,
     }
 }
 
-AACCoefficientsEncoder ff_aac_coders[] = {
+AACCoefficientsEncoder ff_aac_coders[AAC_CODER_NB] = {
     {
         search_for_quantizers_faac,
         encode_window_bands_info,
index 150c651..8dcf27d 100644 (file)
@@ -30,6 +30,8 @@
 
 #include "psymodel.h"
 
+#define AAC_CODER_NB 4
+
 typedef struct AACEncOptions {
     int stereo_mode;
 } AACEncOptions;