diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-12-26 16:46:43 +0100 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-01-26 11:15:38 +0100 |
commit | 7bb98b753b4502c08f5a9fd6785c91612beb36e9 (patch) | |
tree | 85789c0579b9861700bae6d2c51162ed36ed2e6f /libavfilter/formats.c | |
parent | b6afb2dde1aa92ff8fac020f34fc436fede388b0 (diff) |
lavfi: implement ff_all_channel_counts().
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r-- | libavfilter/formats.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 296e4f4b7c..5f8954c789 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -376,6 +376,15 @@ AVFilterChannelLayouts *ff_all_channel_layouts(void) return ret; } +AVFilterChannelLayouts *ff_all_channel_counts(void) +{ + AVFilterChannelLayouts *ret = av_mallocz(sizeof(*ret)); + if (!ret) + return NULL; + ret->all_layouts = ret->all_counts = 1; + return ret; +} + #define FORMATS_REF(f, ref) \ do { \ *ref = f; \ |