From c109c8e7db67df7194f2f913a7a4d65217caee26 Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Thu, 19 Mar 2009 12:28:21 -0700 Subject: [PATCH] Add missing "static" qualifier to two arrays Should slightly improve performance. --- encoder/analyse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encoder/analyse.c b/encoder/analyse.c index 85e9c2b6..e2c40d7d 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 ) -- 2.47.3