diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-05-30 13:59:30 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-06-12 21:38:59 +0200 |
commit | d6251368772a170987387bdc508433c8fcf54cda (patch) | |
tree | 9930e4822f037661607d6fa01ae5ebf907c92069 /libavfilter/formats.c | |
parent | 4795362660a526a38a7a60f06826bce97a092b59 (diff) |
lavfi: add channelsplit audio filter.
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r-- | libavfilter/formats.c | 12 |
1 files changed, 12 insertions, 0 deletions
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)); |