History

tests/examples: Mark some variables only used within their files as static.

Diego Biurrun committed 15 years ago

Commit 4dccfff1 parent 9a5d6c24 files · +14 −12Browse files

Unified · Split

4 files
  1. libavcodec/dct-test.c +1 −1
  2. libavcodec/motion-test.c +2 −2
  3. libavformat/output-example.c +8 −8
  4. libavutil/adler32.c +3 −1
libavcodec/dct-test.c+1−1
@@ -151,7 +151,7 @@ static const struct algo idct_tab[] = { · 150 unmodified lines
151151
152152 #define AANSCALE_BITS 12
153153
154−uint8_t cropTbl[256 + 2 * MAX_NEG_CROP];
154+static uint8_t cropTbl[256 + 2 * MAX_NEG_CROP];
155155
156156 static int64_t gettime(void)
157157 {
libavcodec/motion-test.c+2−2
@@ -38,8 +38,8 @@ · 37 unmodified lines
3838 #define WIDTH 64
3939 #define HEIGHT 64
4040
41−uint8_t img1[WIDTH * HEIGHT];
42−uint8_t img2[WIDTH * HEIGHT];
41+static uint8_t img1[WIDTH * HEIGHT];
42+static uint8_t img2[WIDTH * HEIGHT];
4343
4444 static void fill_random(uint8_t *tab, int size)
4545 {
libavformat/output-example.c+8−8
@@ -51,11 +51,11 @@ static int sws_flags = SWS_BICUBIC; · 50 unmodified lines
5151 /**************************************************************/
5252 /* audio output */
5353
54−float t, tincr, tincr2;
55−int16_t *samples;
56−uint8_t *audio_outbuf;
57−int audio_outbuf_size;
58−int audio_input_frame_size;
54+static float t, tincr, tincr2;
55+static int16_t *samples;
56+static uint8_t *audio_outbuf;
57+static int audio_outbuf_size;
58+static int audio_input_frame_size;
5959
6060 /*
6161 * add an audio output stream
@@ -190,9 +190,9 @@ static void close_audio(AVFormatContext *oc, AVStream *st) · 128 unmodified lines
190190 /**************************************************************/
191191 /* video output */
192192
193−AVFrame *picture, *tmp_picture;
194−uint8_t *video_outbuf;
195−int frame_count, video_outbuf_size;
193+static AVFrame *picture, *tmp_picture;
194+static uint8_t *video_outbuf;
195+static int frame_count, video_outbuf_size;
196196
197197 /* add a video output stream */
198198 static AVStream *add_video_stream(AVFormatContext *oc, enum CodecID codec_id)
libavutil/adler32.c+3−1
@@ -60,7 +60,9 @@ unsigned long av_adler32_update(unsigned long adler, const uint8_t * buf, · 59 unmodified lines
6060 #include "log.h"
6161 #include "timer.h"
6262 #define LEN 7001
63−volatile int checksum;
63+
64+static volatile int checksum;
65+
6466 int main(int argc, char **argv)
6567 {
6668 int i;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t