[FFmpeg-cvslog] tests: Mark some file-internal symbols as static.

Diego Biurrun git at videolan.org
Sat May 5 20:36:38 CEST 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Apr 30 16:29:26 2012 +0200| [814208a7a697274994ee3eeb0da225c0fda6d1c7] | committer: Diego Biurrun

tests: Mark some file-internal symbols as static.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=814208a7a697274994ee3eeb0da225c0fda6d1c7
---

 tests/rotozoom.c |   14 +++++++-------
 tests/videogen.c |    8 ++++----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/tests/rotozoom.c b/tests/rotozoom.c
index 9ce45cd..9bba6e3 100644
--- a/tests/rotozoom.c
+++ b/tests/rotozoom.c
@@ -160,8 +160,8 @@ static void pgmyuv_save(const char *filename, int w, int h,
     free(cr_tab);
 }
 
-unsigned char *rgb_tab;
-int width, height, wrap;
+static unsigned char *rgb_tab;
+static int width, height, wrap;
 
 static void put_pixel(int x, int y, int r, int g, int b)
 {
@@ -177,12 +177,12 @@ static void put_pixel(int x, int y, int r, int g, int b)
     p[2] = b;
 }
 
-unsigned char tab_r[256 * 256];
-unsigned char tab_g[256 * 256];
-unsigned char tab_b[256 * 256];
+static unsigned char tab_r[256 * 256];
+static unsigned char tab_g[256 * 256];
+static unsigned char tab_b[256 * 256];
 
-int h_cos[360];
-int h_sin[360];
+static int h_cos[360];
+static int h_sin[360];
 
 static int ipol(uint8_t *src, int x, int y)
 {
diff --git a/tests/videogen.c b/tests/videogen.c
index 1aad700..14996da 100644
--- a/tests/videogen.c
+++ b/tests/videogen.c
@@ -137,8 +137,8 @@ static void pgmyuv_save(const char *filename, int w, int h,
     free(cr_tab);
 }
 
-unsigned char *rgb_tab;
-int width, height, wrap;
+static unsigned char *rgb_tab;
+static int width, height, wrap;
 
 static void put_pixel(int x, int y, int r, int g, int b)
 {
@@ -200,9 +200,9 @@ typedef struct VObj {
     int r, g, b;
 } VObj;
 
-VObj objs[NB_OBJS];
+static VObj objs[NB_OBJS];
 
-unsigned int seed = 1;
+static unsigned int seed = 1;
 
 static void gen_image(int num, int w, int h)
 {



More information about the ffmpeg-cvslog mailing list