| ... | ... |
@@ -51,11 +51,11 @@ static int sws_flags = SWS_BICUBIC; |
| 51 | 51 |
/**************************************************************/ |
| 52 | 52 |
/* audio output */ |
| 53 | 53 |
|
| 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; |
|
| 59 | 59 |
|
| 60 | 60 |
/* |
| 61 | 61 |
* add an audio output stream |
| ... | ... |
@@ -190,9 +190,9 @@ static void close_audio(AVFormatContext *oc, AVStream *st) |
| 190 | 190 |
/**************************************************************/ |
| 191 | 191 |
/* video output */ |
| 192 | 192 |
|
| 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; |
|
| 196 | 196 |
|
| 197 | 197 |
/* add a video output stream */ |
| 198 | 198 |
static AVStream *add_video_stream(AVFormatContext *oc, enum CodecID codec_id) |
| ... | ... |
@@ -60,7 +60,9 @@ unsigned long av_adler32_update(unsigned long adler, const uint8_t * buf, |
| 60 | 60 |
#include "log.h" |
| 61 | 61 |
#include "timer.h" |
| 62 | 62 |
#define LEN 7001 |
| 63 |
-volatile int checksum; |
|
| 63 |
+ |
|
| 64 |
+static volatile int checksum; |
|
| 65 |
+ |
|
| 64 | 66 |
int main(int argc, char **argv) |
| 65 | 67 |
{
|
| 66 | 68 |
int i; |