# HG changeset patch # User uau # Date 1193899909 0 # Node ID cd55d31cecb25aff8fec9360aba9458633da0267 # Parent 17c6e0a372f47b2dcf943a988788748be068c4a0 dec_audio.c: Make some functions static diff -r 17c6e0a372f4 -r cd55d31cecb2 libmpcodecs/dec_audio.c --- 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; diff -r 17c6e0a372f4 -r cd55d31cecb2 libmpcodecs/dec_audio.h --- 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);