diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-12-26 16:49:16 +0100 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-01-26 11:15:38 +0100 |
commit | 19506af788b64c509dad76f37e0a0da63ef34e44 (patch) | |
tree | 6ce4056232fc4a1f8d8cd5910f4752c6f2394314 /libavfilter/buffersink.h | |
parent | b6b2f3433c217b01c75729df0e316d525cd8d804 (diff) |
lavfi/sink_buffer: accept unknown channel layouts.
Add a field to the AVBufferSinkParams for a list of accepted
channel counts.
Change the default value for the lists in AVBufferSinkParams
to NULL, to let lavfi fill them with something useful.
The fail_enomem path is unneeded because filters are uninited
on failure.
Diffstat (limited to 'libavfilter/buffersink.h')
-rw-r--r-- | libavfilter/buffersink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/buffersink.h b/libavfilter/buffersink.h index a4019375d9..825a36a0a4 100644 --- a/libavfilter/buffersink.h +++ b/libavfilter/buffersink.h @@ -46,6 +46,8 @@ AVBufferSinkParams *av_buffersink_params_alloc(void); typedef struct { const enum AVSampleFormat *sample_fmts; ///< list of allowed sample formats, terminated by AV_SAMPLE_FMT_NONE const int64_t *channel_layouts; ///< list of allowed channel layouts, terminated by -1 + const int *channel_counts; ///< list of allowed channel counts, terminated by -1 + int all_channel_counts; ///< if not 0, accept any channel count or layout } AVABufferSinkParams; /** |