Mercurial > libavcodec.hg
changeset 5692:d639d661129a libavcodec
remove last dependencies on allformats.h and allcodecs.h
author | aurel |
---|---|
date | Thu, 20 Sep 2007 20:36:15 +0000 |
parents | fc98cdbe29b8 |
children | 2c5d1270e7aa |
files | allcodecs.c |
diffstat | 1 files changed, 13 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/allcodecs.c Tue Sep 18 18:12:53 2007 +0000 +++ b/allcodecs.c Thu Sep 20 20:36:15 2007 +0000 @@ -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