diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-09-20 20:36:15 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-09-20 20:36:15 +0000 |
commit | d999cff5a3ae29833d65f640c64ded470cf0c6f0 (patch) | |
tree | b75d8f6fa1e9605c6c57798b2b73fc56e8763f80 /libavcodec/allcodecs.c | |
parent | a889bf135eb902eaa0acb20cc6ce4be7d31d81f6 (diff) | |
download | ffmpeg-d999cff5a3ae29833d65f640c64ded470cf0c6f0.tar.gz |
remove last dependencies on allformats.h and allcodecs.h
Originally committed as revision 10535 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/allcodecs.c')
-rw-r--r-- | libavcodec/allcodecs.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 729710474a..742f46b87d 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.c @@ -24,18 +24,22 @@ * Provides registration of all codecs, parsers and bitstream filters for libavcodec. */ -#include "allcodecs.h" +#include "avcodec.h" -#define REGISTER_ENCODER(X,x) \ - if(ENABLE_##X##_ENCODER) register_avcodec(&x##_encoder) -#define REGISTER_DECODER(X,x) \ - if(ENABLE_##X##_DECODER) register_avcodec(&x##_decoder) +#define REGISTER_ENCODER(X,x) { \ + extern AVCodec x##_encoder; \ + if(ENABLE_##X##_ENCODER) register_avcodec(&x##_encoder); } +#define REGISTER_DECODER(X,x) { \ + extern AVCodec x##_decoder; \ + if(ENABLE_##X##_DECODER) register_avcodec(&x##_decoder); } #define REGISTER_ENCDEC(X,x) REGISTER_ENCODER(X,x); REGISTER_DECODER(X,x) -#define REGISTER_PARSER(X,x) \ - if(ENABLE_##X##_PARSER) av_register_codec_parser(&x##_parser) -#define REGISTER_BSF(X,x) \ - if(ENABLE_##X##_BSF) av_register_bitstream_filter(&x##_bsf) +#define REGISTER_PARSER(X,x) { \ + extern AVCodecParser x##_parser; \ + if(ENABLE_##X##_PARSER) av_register_codec_parser(&x##_parser); } +#define REGISTER_BSF(X,x) { \ + extern AVBitStreamFilter x##_bsf; \ + if(ENABLE_##X##_BSF) av_register_bitstream_filter(&x##_bsf); } /** * Register all the codecs, parsers and bitstream filters which were enabled at |