Showing the changes to libavfilter/src_buffer.c (1 of 1 file). Show all
Unified · Split
| @@ -506,6 +506,10 @@ static int query_formats_audio(AVFilterContext *ctx) · 505 unmodified lines | ||
| 506 | 506 | avfilter_add_format(&formats, abuffer->sample_format); |
| 507 | 507 | avfilter_set_common_sample_formats(ctx, formats); |
| 508 | 508 | |
| 509 | + formats = NULL; | |
| 510 | + avfilter_add_format(&formats, abuffer->sample_rate); | |
| 511 | + ff_set_common_samplerates(ctx, formats); | |
| 512 | + | |
| 509 | 513 | layouts = NULL; |
| 510 | 514 | ff_add_channel_layout(&layouts, abuffer->channel_layout); |
| 511 | 515 | ff_set_common_channel_layouts(ctx, layouts); |