From 4dccfff9dd01d6c45731cda21fc6ea0a649d6581 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 21 Sep 2011 18:44:41 +0200 Subject: tests/examples: Mark some variables only used within their files as static. --- libavcodec/dct-test.c | 2 +- libavcodec/motion-test.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec') 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) { -- cgit v1.2.3