af_aresample: fix typo in query formats
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 17 May 2012 11:09:39 +0000 (13:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 17 May 2012 11:09:39 +0000 (13:09 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/af_aresample.c

index a5ab38e..b9af42e 100644 (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);