diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-17 04:40:57 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-17 04:55:57 +0400 |
commit | 13fdb355358cd074471a18e8f7ea175330e3ceb5 (patch) | |
tree | 84a5bc14635a7a0d4e1c5330daa92fbd1a51c062 /libavfilter/src_buffer.c | |
parent | 3448404a707b6e236a2ffa7b0453b3300de41b7b (diff) |
src_buffer: fix query_formats_audio()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/src_buffer.c')
-rw-r--r-- | libavfilter/src_buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/src_buffer.c b/libavfilter/src_buffer.c index 6402b44dc9..8f27ea0733 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); |