changeset 8117:a0f9045e0a82 libavcodec

Promote inv_aanscales array to global scope (ff_inv_aanscales)
author pross
date Sat, 08 Nov 2008 00:15:08 +0000
parents 2d01559f824c
children 890df98a7848
files mpegvideo_enc.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo_enc.c	Fri Nov 07 07:18:22 2008 +0000
+++ b/mpegvideo_enc.c	Sat Nov 08 00:15:08 2008 +0000
@@ -61,7 +61,7 @@
     4520 ,  6270,  5906,  5315,  4520,  3552,  2446,  1247
 };
 
-static const uint16_t inv_aanscales[64] = {
+const uint16_t ff_inv_aanscales[64] = {
   4096,  2953,  3135,  3483,  4096,  5213,  7568, 14846,
   2953,  2129,  2260,  2511,  2953,  3759,  5457, 10703,
   3135,  2260,  2399,  2666,  3135,  3990,  5793, 11363,
@@ -3089,7 +3089,7 @@
             || s->dsp.fdct == ff_faandct
 #endif
            )
-            dct_coeff= (dct_coeff*inv_aanscales[ scantable[i] ]) >> 12;
+            dct_coeff= (dct_coeff*ff_inv_aanscales[ scantable[i] ]) >> 12;
         zero_distortion= dct_coeff*dct_coeff;
 
         for(level_index=0; level_index < coeff_count[i]; level_index++){