diff options
author | Mina Nagy Zaki <mnzaki@gmail.com> | 2011-06-28 08:56:19 +0300 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-07-16 19:22:49 +0200 |
commit | b57df29f95d1107a66315a6744c1c3e73293b2ee (patch) | |
tree | e3ec19ee11571deaef1a69c82deb31abf0ea0117 /libavfilter/defaults.c | |
parent | 7bda0c9a82eb3c9a58e0c9f170ac47fe7289f6f7 (diff) | |
download | ffmpeg-b57df29f95d1107a66315a6744c1c3e73293b2ee.tar.gz |
lavfi: add audio channel packing negotiation fields
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Diffstat (limited to 'libavfilter/defaults.c')
-rw-r--r-- | libavfilter/defaults.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c index b03816dd24..eef9fd1278 100644 --- a/libavfilter/defaults.c +++ b/libavfilter/defaults.c @@ -239,11 +239,19 @@ void avfilter_set_common_channel_layouts(AVFilterContext *ctx, AVFilterFormats * offsetof(AVFilterLink, out_chlayouts)); } +void avfilter_set_common_packing_formats(AVFilterContext *ctx, AVFilterFormats *formats) +{ + set_common_formats(ctx, formats, AVMEDIA_TYPE_AUDIO, + offsetof(AVFilterLink, in_packing), + offsetof(AVFilterLink, out_packing)); +} + int avfilter_default_query_formats(AVFilterContext *ctx) { avfilter_set_common_pixel_formats(ctx, avfilter_all_formats(AVMEDIA_TYPE_VIDEO)); avfilter_set_common_sample_formats(ctx, avfilter_all_formats(AVMEDIA_TYPE_AUDIO)); avfilter_set_common_channel_layouts(ctx, avfilter_all_channel_layouts()); + avfilter_set_common_packing_formats(ctx, avfilter_all_packing_formats()); return 0; } |