]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/aacsbr_fixed.c
aacenc: allocate a larger buffer for the TNS LPC context
[ffmpeg] / libavcodec / aacsbr_fixed.c
index 5a5c9cc75b188041394cb89c21250f5eefc5ef78..e04806935936434dc5e92f02dfd018fb09cf86a7 100644 (file)
@@ -76,10 +76,9 @@ static VLC vlc_sbr[10];
 static void aacsbr_func_ptr_init(AACSBRContext *c);
 static const int CONST_LN2       = Q31(0.6931471806/256);  // ln(2)/256
 static const int CONST_RECIP_LN2 = Q31(0.7213475204);      // 0.5/ln(2)
-static const int CONST_SQRT2     = Q30(0.7071067812);      // sqrt(2)/2
 static const int CONST_076923    = Q31(0.76923076923076923077f);
 
-int fixed_log_table[10] =
+static const int fixed_log_table[10] =
 {
     Q31(1.0/2), Q31(1.0/3), Q31(1.0/4), Q31(1.0/5), Q31(1.0/6),
     Q31(1.0/7), Q31(1.0/8), Q31(1.0/9), Q31(1.0/10), Q31(1.0/11)
@@ -104,7 +103,7 @@ static int fixed_log(int x)
     return ret;
 }
 
-int fixed_exp_table[7] =
+static const int fixed_exp_table[7] =
 {
     Q31(1.0/2), Q31(1.0/6), Q31(1.0/24), Q31(1.0/120),
     Q31(1.0/720), Q31(1.0/5040), Q31(1.0/40320)