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
43/*43/*
44 * Audio encoding example44 * Audio encoding example
45 */45 */
46void audio_encode_example(const char *filename)46static void audio_encode_example(const char *filename)
47{47{
48 AVCodec *codec;48 AVCodec *codec;
49 AVCodecContext *c= NULL;49 AVCodecContext *c= NULL;
@@ -111,7 +111,7 @@ void audio_encode_example(const char *filename) · 61 unmodified lines
111/*111/*
112 * Audio decoding.112 * Audio decoding.
113 */113 */
114void audio_decode_example(const char *outfilename, const char *filename)114static void audio_decode_example(const char *outfilename, const char *filename)
115{115{
116 AVCodec *codec;116 AVCodec *codec;
117 AVCodecContext *c= NULL;117 AVCodecContext *c= NULL;
@@ -186,7 +186,7 @@ void audio_decode_example(const char *outfilename, const char *filename) · 68 unmodified lines
186/*186/*
187 * Video encoding example187 * Video encoding example
188 */188 */
189void video_encode_example(const char *filename)189static void video_encode_example(const char *filename)
190{190{
191 AVCodec *codec;191 AVCodec *codec;
192 AVCodecContext *c= NULL;192 AVCodecContext *c= NULL;
@@ -297,7 +297,8 @@ void video_encode_example(const char *filename) · 104 unmodified lines
297 * Video decoding example297 * Video decoding example
298 */298 */
299 299
300void pgm_save(unsigned char *buf,int wrap, int xsize,int ysize,char *filename)300static void pgm_save(unsigned char *buf, int wrap, int xsize, int ysize,
301 char *filename)
301{302{
302 FILE *f;303 FILE *f;
303 int i;304 int i;
@@ -309,7 +310,7 @@ void pgm_save(unsigned char *buf,int wrap, int xsize,int ysize,char *filename) · 5 unmodified lines
309 fclose(f);310 fclose(f);
310}311}
311 312
312void video_decode_example(const char *outfilename, const char *filename)313static void video_decode_example(const char *outfilename, const char *filename)
313{314{
314 AVCodec *codec;315 AVCodec *codec;
315 AVCodecContext *c= NULL;316 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