diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-09-21 18:44:41 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-12-08 01:01:00 +0100 |
commit | 4dccfff9dd01d6c45731cda21fc6ea0a649d6581 (patch) | |
tree | d0b4cd35ebaa42e8cf048b6196ae44a651877e48 /libavformat/output-example.c | |
parent | 9a5d6c23c5cc25b887f996d55f96dfbacf760e88 (diff) | |
download | ffmpeg-4dccfff9dd01d6c45731cda21fc6ea0a649d6581.tar.gz |
tests/examples: Mark some variables only used within their files as static.
Diffstat (limited to 'libavformat/output-example.c')
-rw-r--r-- | libavformat/output-example.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/output-example.c b/libavformat/output-example.c index 809e236674..a1702cd01a 100644 --- a/libavformat/output-example.c +++ b/libavformat/output-example.c @@ -51,11 +51,11 @@ static int sws_flags = SWS_BICUBIC; /**************************************************************/ /* audio output */ -float t, tincr, tincr2; -int16_t *samples; -uint8_t *audio_outbuf; -int audio_outbuf_size; -int audio_input_frame_size; +static float t, tincr, tincr2; +static int16_t *samples; +static uint8_t *audio_outbuf; +static int audio_outbuf_size; +static int audio_input_frame_size; /* * add an audio output stream @@ -190,9 +190,9 @@ static void close_audio(AVFormatContext *oc, AVStream *st) /**************************************************************/ /* video output */ -AVFrame *picture, *tmp_picture; -uint8_t *video_outbuf; -int frame_count, video_outbuf_size; +static AVFrame *picture, *tmp_picture; +static uint8_t *video_outbuf; +static int frame_count, video_outbuf_size; /* add a video output stream */ static AVStream *add_video_stream(AVFormatContext *oc, enum CodecID codec_id) |