[vlc-devel] [PATCH 2/2] video_chroma/swscale: make global variable static

Marvin Scholz epirat07 at gmail.com
Fri Jun 14 20:45:31 CEST 2019


Fixes symbol collisions in static libvlc builds where modules are
statically linked into the app.
---
 modules/video_chroma/swscale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/swscale.c b/modules/video_chroma/swscale.c
index fd254bdcdc..3c7bdf78ea 100644
--- a/modules/video_chroma/swscale.c
+++ b/modules/video_chroma/swscale.c
@@ -58,7 +58,7 @@ static void CloseScaler( vlc_object_t * );
 #define SCALEMODE_LONGTEXT N_("Scaling mode to use.")
 
 static const int pi_mode_values[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
-const char *const ppsz_mode_descriptions[] =
+static const char *const ppsz_mode_descriptions[] =
 { N_("Fast bilinear"), N_("Bilinear"), N_("Bicubic (good quality)"),
   N_("Experimental"), N_("Nearest neighbor (bad quality)"),
   N_("Area"), N_("Luma bicubic / chroma bilinear"), N_("Gauss"),
-- 
2.19.1



More information about the vlc-devel mailing list