changeset 24885:cd55d31cecb2

dec_audio.c: Make some functions static
author uau
date Thu, 01 Nov 2007 06:51:49 +0000
parents 17c6e0a372f4
children 9846871187fa
files libmpcodecs/dec_audio.c libmpcodecs/dec_audio.h
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/dec_audio.c	Thu Nov 01 06:51:44 2007 +0000
+++ b/libmpcodecs/dec_audio.c	Thu Nov 01 06:51:49 2007 +0000
@@ -53,7 +53,7 @@
 		   mpcodecs_ad_drivers[i]->info->name);
 }
 
-int init_audio_codec(sh_audio_t *sh_audio)
+static int init_audio_codec(sh_audio_t *sh_audio)
 {
     if ((af_cfg.force & AF_INIT_FORMAT_MASK) == AF_INIT_FLOAT) {
 	int fmt = AF_FORMAT_FLOAT_NE;
@@ -127,7 +127,8 @@
     return 1;
 }
 
-int init_audio(sh_audio_t *sh_audio, char *codecname, char *afm, int status)
+static int init_audio(sh_audio_t *sh_audio, char *codecname, char *afm,
+		      int status)
 {
     unsigned int orig_fourcc = sh_audio->wf ? sh_audio->wf->wFormatTag : 0;
     int force = 0;
--- a/libmpcodecs/dec_audio.h	Thu Nov 01 06:51:44 2007 +0000
+++ b/libmpcodecs/dec_audio.h	Thu Nov 01 06:51:49 2007 +0000
@@ -1,9 +1,6 @@
 
 // dec_audio.c:
 extern void afm_help(void);
-//extern int init_best_audio_codec(sh_audio_t *sh_audio,char* audio_codec,char* audio_fm);
-extern int init_audio_codec(sh_audio_t *sh_audio);
-extern int init_audio(sh_audio_t *sh_audio,char* codecname,char* afm,int status);
 extern int init_best_audio_codec(sh_audio_t *sh_audio,char** audio_codec_list,char** audio_fm_list);
 extern int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen);
 extern void resync_audio_stream(sh_audio_t *sh_audio);