diff options
author | Jason Millard <jsm174@gmail.com> | 2007-05-12 23:33:53 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-05-12 23:33:53 +0000 |
commit | cd61e40781f7e28fe90ed258955026cff137ed97 (patch) | |
tree | 375393bb5b4fb10997e7de040c35f28611c0752c /libavcodec/allcodecs.c | |
parent | cf329752227e5a3b56b4eea75ea86e9570a81891 (diff) | |
download | ffmpeg-cd61e40781f7e28fe90ed258955026cff137ed97.tar.gz |
allow to enable or disable every bitstream filters individually
Original patch by Jason Millard jsm174 _at_ gmail
Date: On Fri, 11 May 2007 11:14:01 -0400
Subject: [FFmpeg-devel] enable/disable bitstream filters?
Originally committed as revision 9010 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/allcodecs.c')
-rw-r--r-- | libavcodec/allcodecs.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 9f639727c3..4c18f5742a 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.c @@ -34,6 +34,8 @@ #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) /** * Register all the codecs, parsers and bitstream filters which were enabled at @@ -273,12 +275,13 @@ void avcodec_register_all(void) REGISTER_PARSER (PNM, pnm); REGISTER_PARSER (VC1, vc1); - av_register_bitstream_filter(&dump_extradata_bsf); - av_register_bitstream_filter(&remove_extradata_bsf); - av_register_bitstream_filter(&noise_bsf); - av_register_bitstream_filter(&mp3_header_compress_bsf); - av_register_bitstream_filter(&mp3_header_decompress_bsf); - av_register_bitstream_filter(&mjpega_dump_header_bsf); - av_register_bitstream_filter(&imx_dump_header_bsf); + /* bitstream filters */ + REGISTER_BSF (DUMP_EXTRADATA, dump_extradata); + REGISTER_BSF (REMOVE_EXTRADATA, remove_extradata); + REGISTER_BSF (NOISE, noise); + REGISTER_BSF (MP3_HEADER_COMPRESS, mp3_header_compress); + REGISTER_BSF (MP3_HEADER_DECOMPRESS, mp3_header_decompress); + REGISTER_BSF (MJPEGA_DUMP_HEADER, mjpega_dump_header); + REGISTER_BSF (IMX_DUMP_HEADER, imx_dump_header); } |