summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mencoder.c b/mencoder.c
index f65e768a1b..11d56bb75a 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -986,12 +986,15 @@ else if (sh_audio) {
}
break;
}
- if (do_init_filters) if(!init_audio_filters(sh_audio,
+ if (do_init_filters) {
+ int out_srate = mux_a->wf->nSamplesPerSec;
+ int out_channels = mux_a->wf->nChannels;
+ if(!init_audio_filters(sh_audio,
new_srate,
sh_audio->channels,
sh_audio->sample_format,
- &mux_a->wf->nSamplesPerSec,
- &mux_a->wf->nChannels,
+ &out_srate,
+ &out_channels,
&out_format,
out_minsize,
out_maxsize))
@@ -999,6 +1002,9 @@ else if (sh_audio) {
mp_msg(MSGT_CPLAYER, MSGL_FATAL, MSGTR_NoMatchingFilter);
mencoder_exit(1, NULL);
}
+ mux_a->wf->nSamplesPerSec = out_srate;
+ mux_a->wf->nChannels = out_channels;
+ }
}
parse_end_at();