Unified · Split
| @@ -151,7 +151,7 @@ static const struct algo idct_tab[] = { · 150 unmodified lines | ||
| 151 | 151 | |
| 152 | 152 | #define AANSCALE_BITS 12 |
| 153 | 153 | |
| 154 | −uint8_t cropTbl[256 + 2 * MAX_NEG_CROP]; | |
| 154 | +static uint8_t cropTbl[256 + 2 * MAX_NEG_CROP]; | |
| 155 | 155 | |
| 156 | 156 | static int64_t gettime(void) |
| 157 | 157 | { |
| @@ -38,8 +38,8 @@ · 37 unmodified lines | ||
| 38 | 38 | #define WIDTH 64 |
| 39 | 39 | #define HEIGHT 64 |
| 40 | 40 | |
| 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]; | |
| 43 | 43 | |
| 44 | 44 | static void fill_random(uint8_t *tab, int size) |
| 45 | 45 | { |
| @@ -51,11 +51,11 @@ static int sws_flags = SWS_BICUBIC; · 50 unmodified lines | ||
| 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) · 128 unmodified lines | ||
| 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, · 59 unmodified lines | ||
| 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; |