af_aresample: fix typo in query formats

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-05-17 13:09:39 +02:00
parent ac87c273a6
commit 47c2e52bc6

View File

@ -82,7 +82,7 @@ static int query_formats(AVFilterContext *ctx)
if(aresample->out_rate > 0) {
int sample_rates[] = { aresample->out_rate, -1 };
ff_set_common_samplerates(ctx, avfilter_make_format_list(sample_rates));
avfilter_formats_ref(avfilter_make_format_list(sample_rates), &outlink->in_samplerates);
} else {
out_samplerates = ff_all_samplerates();
avfilter_formats_ref(out_samplerates, &outlink->in_samplerates);