summaryrefslogtreecommitdiff
path: root/libavfilter/formats.c
diff options
context:
space:
mode:
authorMina Nagy Zaki <mnzaki@gmail.com>2011-06-28 08:56:19 +0300
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-16 19:22:49 +0200
commitb57df29f95d1107a66315a6744c1c3e73293b2ee (patch)
treee3ec19ee11571deaef1a69c82deb31abf0ea0117 /libavfilter/formats.c
parent7bda0c9a82eb3c9a58e0c9f170ac47fe7289f6f7 (diff)
lavfi: add audio channel packing negotiation fields
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r--libavfilter/formats.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c
index b6e30e7ab4..214718b779 100644
--- a/libavfilter/formats.c
+++ b/libavfilter/formats.c
@@ -173,6 +173,17 @@ AVFilterFormats *avfilter_all_channel_layouts(void)
return avfilter_make_format64_list(chlayouts);
}
+AVFilterFormats *avfilter_all_packing_formats(void)
+{
+ static int packing[] = {
+ AVFILTER_PACKED,
+ AVFILTER_PLANAR,
+ -1,
+ };
+
+ return avfilter_make_format_list(packing);
+}
+
void avfilter_formats_ref(AVFilterFormats *f, AVFilterFormats **ref)
{
*ref = f;