diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-29 13:05:37 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-29 13:05:37 +0100 |
commit | 2a9443a110e1865523fee32404890097fb6d1d93 (patch) | |
tree | 1efe4011946d8d0dde56c2394188e85751f2c05c /libavfilter/allfilters.c | |
parent | ba34e56c0d39e0aa4c93241623b63db81dfef79b (diff) | |
parent | 69583bd3b1eba471366141c945030c163e073e02 (diff) | |
download | ffmpeg-2a9443a110e1865523fee32404890097fb6d1d93.tar.gz |
Merge commit '69583bd3b1eba471366141c945030c163e073e02'
* commit '69583bd3b1eba471366141c945030c163e073e02':
avfilter: Refactor unconditional filter registration
build: Add rtpenc_chain extra config option
configure: Add --disable-all command line option
Conflicts:
libavfilter/allfilters.c
libavformat/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/allfilters.c')
-rw-r--r-- | libavfilter/allfilters.c | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/libavfilter/allfilters.c b/libavfilter/allfilters.c index 88b097979c..656d76db63 100644 --- a/libavfilter/allfilters.c +++ b/libavfilter/allfilters.c @@ -31,6 +31,12 @@ extern AVFilter avfilter_##y##_##x ; \ avfilter_register(&avfilter_##y##_##x ); } +#define REGISTER_FILTER_UNCONDITIONAL(x) \ + { \ + extern AVFilter avfilter_##x; \ + avfilter_register(&avfilter_##x); \ + } + void avfilter_register_all(void) { static int initialized; @@ -169,28 +175,10 @@ void avfilter_register_all(void) /* those filters are part of public or internal API => registered * unconditionally */ - { - extern AVFilter avfilter_vsrc_buffer; - avfilter_register(&avfilter_vsrc_buffer); - } - { - extern AVFilter avfilter_asrc_abuffer; - avfilter_register(&avfilter_asrc_abuffer); - } - { - extern AVFilter avfilter_vsink_buffer; - avfilter_register(&avfilter_vsink_buffer); - } - { - extern AVFilter avfilter_asink_abuffer; - avfilter_register(&avfilter_asink_abuffer); - } - { - extern AVFilter avfilter_af_afifo; - avfilter_register(&avfilter_af_afifo); - } - { - extern AVFilter avfilter_vf_fifo; - avfilter_register(&avfilter_vf_fifo); - } + REGISTER_FILTER_UNCONDITIONAL(asrc_abuffer); + REGISTER_FILTER_UNCONDITIONAL(vsrc_buffer); + REGISTER_FILTER_UNCONDITIONAL(asink_abuffer); + REGISTER_FILTER_UNCONDITIONAL(vsink_buffer); + REGISTER_FILTER_UNCONDITIONAL(af_afifo); + REGISTER_FILTER_UNCONDITIONAL(vf_fifo); } |