summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-09-21 18:44:41 +0200
committerDiego Biurrun <diego@biurrun.de>2011-12-08 01:01:00 +0100
commit4dccfff9dd01d6c45731cda21fc6ea0a649d6581 (patch)
treed0b4cd35ebaa42e8cf048b6196ae44a651877e48 /libavcodec
parent9a5d6c23c5cc25b887f996d55f96dfbacf760e88 (diff)
tests/examples: Mark some variables only used within their files as static.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dct-test.c2
-rw-r--r--libavcodec/motion-test.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index d30454990a..1665682698 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -151,7 +151,7 @@ static const struct algo idct_tab[] = {
#define AANSCALE_BITS 12
-uint8_t cropTbl[256 + 2 * MAX_NEG_CROP];
+static uint8_t cropTbl[256 + 2 * MAX_NEG_CROP];
static int64_t gettime(void)
{
diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c
index b054fc9d1b..8708636030 100644
--- a/libavcodec/motion-test.c
+++ b/libavcodec/motion-test.c
@@ -38,8 +38,8 @@
#define WIDTH 64
#define HEIGHT 64
-uint8_t img1[WIDTH * HEIGHT];
-uint8_t img2[WIDTH * HEIGHT];
+static uint8_t img1[WIDTH * HEIGHT];
+static uint8_t img2[WIDTH * HEIGHT];
static void fill_random(uint8_t *tab, int size)
{