aacenctab: Add missing ff_ prefixes
authorTimothy Gu <timothygu99@gmail.com>
Sat, 22 Aug 2015 03:30:15 +0000 (04:30 +0100)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Sat, 22 Aug 2015 03:30:15 +0000 (04:30 +0100)
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu>
libavcodec/aacenc.c
libavcodec/aacenctab.c
libavcodec/aacenctab.h

index af77379..71071eb 100644 (file)
@@ -778,7 +778,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
 
     s->channels = avctx->channels;
 
-    ERROR_IF(i == 16 || i >= swb_size_1024_len || i >= swb_size_128_len,
+    ERROR_IF(i == 16 || i >= ff_aac_swb_size_1024_len || i >= ff_aac_swb_size_128_len,
              "Unsupported sample rate %d\n", avctx->sample_rate);
     ERROR_IF(s->channels > AAC_MAX_CHANNELS,
              "Unsupported number of channels: %d\n", s->channels);
@@ -813,8 +813,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
     avctx->extradata_size = 5;
     put_audio_specific_config(avctx);
 
-    sizes[0]   = swb_size_1024[i];
-    sizes[1]   = swb_size_128[i];
+    sizes[0]   = ff_aac_swb_size_1024[i];
+    sizes[1]   = ff_aac_swb_size_128[i];
     lengths[0] = ff_aac_num_swb_1024[i];
     lengths[1] = ff_aac_num_swb_128[i];
     for (i = 0; i < s->chan_map[0]; i++)
index e56be2b..b6ee0de 100644 (file)
@@ -88,7 +88,7 @@ static const uint8_t swb_size_1024_8[] = {
     32, 36, 36, 40, 44, 48, 52, 56, 60, 64, 80
 };
 
-const uint8_t *swb_size_128[] = {
+const uint8_t *ff_aac_swb_size_128[] = {
     swb_size_128_96, swb_size_128_96, swb_size_128_64,
     swb_size_128_48, swb_size_128_48, swb_size_128_48,
     swb_size_128_24, swb_size_128_24, swb_size_128_16,
@@ -96,7 +96,7 @@ const uint8_t *swb_size_128[] = {
     swb_size_128_8
 };
 
-const uint8_t *swb_size_1024[] = {
+const uint8_t *ff_aac_swb_size_1024[] = {
     swb_size_1024_96, swb_size_1024_96, swb_size_1024_64,
     swb_size_1024_48, swb_size_1024_48, swb_size_1024_32,
     swb_size_1024_24, swb_size_1024_24, swb_size_1024_16,
@@ -104,5 +104,5 @@ const uint8_t *swb_size_1024[] = {
     swb_size_1024_8
 };
 
-const int swb_size_128_len  = FF_ARRAY_ELEMS(swb_size_128);
-const int swb_size_1024_len = FF_ARRAY_ELEMS(swb_size_1024);
+const int swb_size_128_len  = FF_ARRAY_ELEMS(ff_aac_swb_size_128);
+const int swb_size_1024_len = FF_ARRAY_ELEMS(ff_aac_swb_size_1024);
index 25c523e..7e14a19 100644 (file)
 
 #define AAC_MAX_CHANNELS 6
 
-extern const uint8_t *swb_size_1024[];
-extern const int      swb_size_1024_len;
-extern const uint8_t *swb_size_128[];
-extern const int      swb_size_128_len;
+extern const uint8_t *ff_aac_swb_size_1024[];
+extern const int      ff_aac_swb_size_1024_len;
+extern const uint8_t *ff_aac_swb_size_128[];
+extern const int      ff_aac_swb_size_128_len;
 
 /** default channel configurations */
 static const uint8_t aac_chan_configs[6][5] = {