From d6251368772a170987387bdc508433c8fcf54cda Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 30 May 2012 13:59:30 +0200 Subject: lavfi: add channelsplit audio filter. --- libavfilter/formats.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libavfilter/formats.c') diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 83bdcd7a7a..1d58d95b8e 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -220,6 +220,18 @@ AVFilterFormats *ff_all_formats(enum AVMediaType type) return ret; } +AVFilterFormats *ff_planar_sample_fmts(void) +{ + AVFilterFormats *ret = NULL; + int fmt; + + for (fmt = 0; fmt < AV_SAMPLE_FMT_NB; fmt++) + if (av_sample_fmt_is_planar(fmt)) + ff_add_format(&ret, fmt); + + return ret; +} + AVFilterFormats *ff_all_samplerates(void) { AVFilterFormats *ret = av_mallocz(sizeof(*ret)); -- cgit v1.2.3