Mercurial > mplayer.hg
diff libmpcodecs/dec_audio.c @ 7614:ce6a938aa6d3
Adding -format and -af switches
author | anders |
---|---|
date | Sun, 06 Oct 2002 11:23:02 +0000 |
parents | 32efb806436e |
children | 0b3b1cbebd99 |
line wrap: on
line diff
--- a/libmpcodecs/dec_audio.c Sun Oct 06 10:49:41 2002 +0000 +++ b/libmpcodecs/dec_audio.c Sun Oct 06 11:23:02 2002 +0000 @@ -25,6 +25,7 @@ #endif /* used for ac3surround decoder - set using -channels option */ int audio_output_channels = 2; +af_cfg_t af_cfg; // Configuration for audio filters static ad_functions_t* mpadec; @@ -255,8 +256,7 @@ afs->output.bps = out_bps ? out_bps : afs->input.bps; // filter config: - afs->cfg.force = 0; - afs->cfg.list = NULL; + memcpy(&afs->cfg,&af_cfg,sizeof(af_cfg_t)); mp_msg(MSGT_DECAUDIO, MSGL_INFO, "Building audio filter chain for %dHz/%dch/%dbit -> %dHz/%dch/%dbit...\n", afs->input.rate,afs->input.nch,afs->input.bps*8,