[x264-devel] commit: Add missing "static" qualifier to two arrays (Jason Garrett-Glaser )

git version control git at videolan.org
Thu Mar 19 21:57:02 CET 2009


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Thu Mar 19 12:28:21 2009 -0700| [c109c8e7db67df7194f2f913a7a4d65217caee26] | committer: Jason Garrett-Glaser 

Add missing "static" qualifier to two arrays
Should slightly improve performance.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=c109c8e7db67df7194f2f913a7a4d65217caee26
---

 encoder/analyse.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/encoder/analyse.c b/encoder/analyse.c
index 85e9c2b..e2c40d7 100644
--- a/encoder/analyse.c
+++ b/encoder/analyse.c
@@ -486,7 +486,7 @@ static void inline x264_psy_trellis_init( x264_t *h, int do_both_dct )
 {
     DECLARE_ALIGNED_16( int16_t dct8x8[4][8][8] );
     DECLARE_ALIGNED_16( int16_t dct4x4[16][4][4] );
-    DECLARE_ALIGNED_16( uint8_t zero[16*FDEC_STRIDE] ) = {0};
+    DECLARE_ALIGNED_16( static uint8_t zero[16*FDEC_STRIDE] ) = {0};
     int i;
 
     if( do_both_dct || h->mb.b_transform_8x8 )
@@ -506,7 +506,7 @@ static void inline x264_psy_trellis_init( x264_t *h, int do_both_dct )
 /* Pre-calculate fenc satd scores for psy RD, minus DC coefficients */
 static inline void x264_mb_cache_fenc_satd( x264_t *h )
 {
-    DECLARE_ALIGNED_16(uint8_t zero[16]) = {0};
+    DECLARE_ALIGNED_16( static uint8_t zero[16] ) = {0};
     uint8_t *fenc;
     int x, y, satd_sum = 0, sa8d_sum = 0;
     if( h->param.analyse.i_trellis == 2 && h->mb.i_psy_trellis )



More information about the x264-devel mailing list