summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2008-11-08 00:15:08 +0000
committerPeter Ross <pross@xvid.org>2008-11-08 00:15:08 +0000
commit939e4e3a72bc367225b99e1b43dedbc0700ec991 (patch)
tree84ad291a84a1745ef0c6d3b4974ca669f6011eb4 /libavcodec
parente1223112615cfc35779b9d0380332ed7c4085bb0 (diff)
Promote inv_aanscales array to global scope (ff_inv_aanscales)
Originally committed as revision 15787 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo_enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 0c60707a04..ae7f211454 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -61,7 +61,7 @@ static const uint16_t aanscales[64] = {
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 @@ int dct_quantize_trellis_c(MpegEncContext *s,
|| 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++){