Mercurial > mplayer.hg
diff mencoder.c @ 7614:ce6a938aa6d3
Adding -format and -af switches
author | anders |
---|---|
date | Sun, 06 Oct 2002 11:23:02 +0000 |
parents | ff6bcf692358 |
children | 55f894f3e09d |
line wrap: on
line diff
--- a/mencoder.c Sun Oct 06 10:49:41 2002 +0000 +++ b/mencoder.c Sun Oct 06 11:23:02 2002 +0000 @@ -130,6 +130,7 @@ static int skip_limit=-1; static int force_srate=0; +static int audio_output_format=0; char *vobsub_out=NULL; unsigned int vobsub_out_index=0; @@ -671,7 +672,7 @@ } else { mux_a->wf = malloc(sizeof(WAVEFORMATEX)); mux_a->wf->nBlockAlign = 1; //mux_a->h.dwSampleSize; - mux_a->wf->wFormatTag = sh_audio->format; + mux_a->wf->wFormatTag = audio_output_format?audio_output_format:sh_audio->format; mux_a->wf->nChannels = sh_audio->channels; mux_a->wf->nSamplesPerSec = sh_audio->samplerate; mux_a->wf->nAvgBytesPerSec=sh_audio->i_bps; //mux_a->h.dwSampleSize*mux_a->wf->nSamplesPerSec;