src_buffer: fix query_formats_audio()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 17 May 2012 00:40:57 +0000 (02:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 17 May 2012 00:55:57 +0000 (02:55 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/src_buffer.c

index 6402b44..8f27ea0 100644 (file)
@@ -506,6 +506,10 @@ static int query_formats_audio(AVFilterContext *ctx)
     avfilter_add_format(&formats, abuffer->sample_format);
     avfilter_set_common_sample_formats(ctx, formats);
 
+    formats = NULL;
+    avfilter_add_format(&formats, abuffer->sample_rate);
+    ff_set_common_samplerates(ctx, formats);
+
     layouts = NULL;
     ff_add_channel_layout(&layouts, abuffer->channel_layout);
     ff_set_common_channel_layouts(ctx, layouts);