};
static const AVClass aformat_class = {
- .class_name = "aformat filter",
+ .class_name = "aformat",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
- .category = AV_CLASS_CATEGORY_FILTER,
+ .category = AV_CLASS_CATEGORY_FILTER,
};
#define PARSE_FORMATS(str, type, list, add_to_list, get_fmt, none, desc) \
}
PARSE_FORMATS(s->formats_str, enum AVSampleFormat, s->formats,
- avfilter_add_format, av_get_sample_fmt, AV_SAMPLE_FMT_NONE, "sample format");
- PARSE_FORMATS(s->sample_rates_str, int, s->sample_rates, avfilter_add_format,
+ ff_add_format, av_get_sample_fmt, AV_SAMPLE_FMT_NONE, "sample format");
+ PARSE_FORMATS(s->sample_rates_str, int, s->sample_rates, ff_add_format,
get_sample_rate, 0, "sample rate");
PARSE_FORMATS(s->channel_layouts_str, uint64_t, s->channel_layouts,
ff_add_channel_layout, av_get_channel_layout, 0,
{
AFormatContext *s = ctx->priv;
- avfilter_set_common_formats(ctx, s->formats ? s->formats :
- avfilter_all_formats(AVMEDIA_TYPE_AUDIO));
+ ff_set_common_formats(ctx, s->formats ? s->formats :
+ ff_all_formats(AVMEDIA_TYPE_AUDIO));
ff_set_common_samplerates(ctx, s->sample_rates ? s->sample_rates :
ff_all_samplerates());
ff_set_common_channel_layouts(ctx, s->channel_layouts ? s->channel_layouts :