diff options
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r-- | libavfilter/formats.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 95a6b1188d..a2b19e7603 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -289,6 +289,17 @@ AVFilterFormats *ff_make_format_list(const int *fmts) return formats; } +AVFilterChannelLayouts *ff_make_formatu64_list(const uint64_t *fmts) +{ + MAKE_FORMAT_LIST(AVFilterChannelLayouts, + channel_layouts, nb_channel_layouts); + if (count) + memcpy(formats->channel_layouts, fmts, + sizeof(*formats->channel_layouts) * count); + + return formats; +} + AVFilterChannelLayouts *avfilter_make_format64_list(const int64_t *fmts) { MAKE_FORMAT_LIST(AVFilterChannelLayouts, |