Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavcodec/api-example.c (1 of 7 files). Show all
Unified · Split
| @@ -43,7 +43,7 @@ · 42 unmodified lines | |||
| 43 | /* | 43 | /* |
| 44 | * Audio encoding example | 44 | * Audio encoding example |
| 45 | */ | 45 | */ |
| 46 | void audio_encode_example(const char *filename) | 46 | static 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 | */ |
| 114 | void audio_decode_example(const char *outfilename, const char *filename) | 114 | static 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 example | 187 | * Video encoding example |
| 188 | */ | 188 | */ |
| 189 | void video_encode_example(const char *filename) | 189 | static 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 example | 297 | * Video decoding example |
| 298 | */ | 298 | */ |
| 299 | 299 | ||
| 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) | ||
| 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 | ||
| 312 | void video_decode_example(const char *outfilename, const char *filename) | 313 | static 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; |