[FFmpeg-cvslog] src_buffer: fix query_formats_audio()

Michael Niedermayer git at videolan.org
Thu May 17 04:12:58 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 17 02:40:57 2012 +0200| [13fdb355358cd074471a18e8f7ea175330e3ceb5] | committer: Michael Niedermayer

src_buffer: fix query_formats_audio()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=13fdb355358cd074471a18e8f7ea175330e3ceb5
---

 libavfilter/src_buffer.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavfilter/src_buffer.c b/libavfilter/src_buffer.c
index 6402b44..8f27ea0 100644
--- a/libavfilter/src_buffer.c
+++ b/libavfilter/src_buffer.c
@@ -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);



More information about the ffmpeg-cvslog mailing list