History

Mark non-exported functions in test and example programs as static.

Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk

Diego Biurrun committed 17 years ago

Commit 504ffed1 parent cafe71c7 files · +28 −26Browse files

Showing the changes to libavcodec/api-example.c (1 of 7 files). Show all

Unified · Split

libavcodec/api-example.c+6−5
@@ -43,7 +43,7 @@ · 42 unmodified lines
4343 /*
4444 * Audio encoding example
4545 */
46−void audio_encode_example(const char *filename)
46+static void audio_encode_example(const char *filename)
4747 {
4848 AVCodec *codec;
4949 AVCodecContext *c= NULL;
@@ -111,7 +111,7 @@ void audio_encode_example(const char *filename) · 61 unmodified lines
111111 /*
112112 * Audio decoding.
113113 */
114−void audio_decode_example(const char *outfilename, const char *filename)
114+static void audio_decode_example(const char *outfilename, const char *filename)
115115 {
116116 AVCodec *codec;
117117 AVCodecContext *c= NULL;
@@ -186,7 +186,7 @@ void audio_decode_example(const char *outfilename, const char *filename) · 68 unmodified lines
186186 /*
187187 * Video encoding example
188188 */
189−void video_encode_example(const char *filename)
189+static void video_encode_example(const char *filename)
190190 {
191191 AVCodec *codec;
192192 AVCodecContext *c= NULL;
@@ -297,7 +297,8 @@ void video_encode_example(const char *filename) · 104 unmodified lines
297297 * Video decoding example
298298 */
299299
300−void pgm_save(unsigned char *buf,int wrap, int xsize,int ysize,char *filename)
300+static void pgm_save(unsigned char *buf, int wrap, int xsize, int ysize,
301+ char *filename)
301302 {
302303 FILE *f;
303304 int i;
@@ -309,7 +310,7 @@ void pgm_save(unsigned char *buf,int wrap, int xsize,int ysize,char *filename) · 5 unmodified lines
309310 fclose(f);
310311 }
311312
312−void video_decode_example(const char *outfilename, const char *filename)
313+static void video_decode_example(const char *outfilename, const char *filename)
313314 {
314315 AVCodec *codec;
315316 AVCodecContext *c= NULL;

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