Skip to content
Snippets Groups Projects
Commit 13fdb355 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

src_buffer: fix query_formats_audio()

parent 3448404a
No related branches found
No related tags found
No related merge requests found
...@@ -506,6 +506,10 @@ static int query_formats_audio(AVFilterContext *ctx) ...@@ -506,6 +506,10 @@ static int query_formats_audio(AVFilterContext *ctx)
avfilter_add_format(&formats, abuffer->sample_format); avfilter_add_format(&formats, abuffer->sample_format);
avfilter_set_common_sample_formats(ctx, formats); avfilter_set_common_sample_formats(ctx, formats);
formats = NULL;
avfilter_add_format(&formats, abuffer->sample_rate);
ff_set_common_samplerates(ctx, formats);
layouts = NULL; layouts = NULL;
ff_add_channel_layout(&layouts, abuffer->channel_layout); ff_add_channel_layout(&layouts, abuffer->channel_layout);
ff_set_common_channel_layouts(ctx, layouts); ff_set_common_channel_layouts(ctx, layouts);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment