[x264-devel] [PATCH] Add hidden visibility attribute to x264_cabac_range_lps

Rafaël Carré funman at videolan.org
Tue Apr 16 15:16:04 CEST 2013


Fix linking to libx264.a on x86_64 Linux, without needing to use -Bsymbolic

Suggested-by: Anton Mitrofanov <BugMaster at narod.ru>
---
 common/cabac.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/common/cabac.c b/common/cabac.c
index 04d1add..3c7749b 100644
--- a/common/cabac.c
+++ b/common/cabac.c
@@ -1240,6 +1240,7 @@ static const int8_t x264_cabac_context_init_PB[3][1024][2] =
     }
 };
 
+const uint8_t x264_cabac_range_lps[64][4] __attribute__ ((visibility("hidden")));
 const uint8_t x264_cabac_range_lps[64][4] =
 {
     {  2,   2,   2,   2}, {  6,   7,   8,   9}, {  6,   7,   9,  10}, {  6,   8,   9,  11},
-- 
1.7.10.4


More information about the x264-devel mailing list