diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-17 02:40:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-17 02:55:57 +0200 |
commit | 13fdb355358cd074471a18e8f7ea175330e3ceb5 (patch) | |
tree | 84a5bc14635a7a0d4e1c5330daa92fbd1a51c062 | |
parent | 3448404a707b6e236a2ffa7b0453b3300de41b7b (diff) | |
download | ffmpeg-13fdb355358cd074471a18e8f7ea175330e3ceb5.tar.gz |
src_buffer: fix query_formats_audio()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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); |