Mercurial > libavformat.hg
comparison allformats.c @ 2561:4054c3ecddee libavformat
remove last dependencies on allformats.h and allcodecs.h
author | aurel |
---|---|
date | Thu, 20 Sep 2007 20:36:15 +0000 |
parents | 276257e703af |
children | f7e6f4b33f77 |
comparison
equal
deleted
inserted
replaced
2560:bc13220fb9cd | 2561:4054c3ecddee |
---|---|
17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
18 * License along with FFmpeg; if not, write to the Free Software | 18 * License along with FFmpeg; if not, write to the Free Software |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 */ | 20 */ |
21 #include "avformat.h" | 21 #include "avformat.h" |
22 #include "allformats.h" | |
23 #include "rtp_internal.h" | 22 #include "rtp_internal.h" |
24 | 23 |
25 #define REGISTER_MUXER(X,x) \ | 24 /* rtp.c */ |
26 if(ENABLE_##X##_MUXER) av_register_output_format(&x##_muxer) | 25 void av_register_rtp_dynamic_payload_handlers(void); |
27 #define REGISTER_DEMUXER(X,x) \ | 26 |
28 if(ENABLE_##X##_DEMUXER) av_register_input_format(&x##_demuxer) | 27 #define REGISTER_MUXER(X,x) { \ |
28 extern AVOutputFormat x##_muxer; \ | |
29 if(ENABLE_##X##_MUXER) av_register_output_format(&x##_muxer); } | |
30 #define REGISTER_DEMUXER(X,x) { \ | |
31 extern AVInputFormat x##_demuxer; \ | |
32 if(ENABLE_##X##_DEMUXER) av_register_input_format(&x##_demuxer); } | |
29 #define REGISTER_MUXDEMUX(X,x) REGISTER_MUXER(X,x); REGISTER_DEMUXER(X,x) | 33 #define REGISTER_MUXDEMUX(X,x) REGISTER_MUXER(X,x); REGISTER_DEMUXER(X,x) |
30 #define REGISTER_PROTOCOL(X,x) \ | 34 #define REGISTER_PROTOCOL(X,x) { \ |
31 if(ENABLE_##X##_PROTOCOL) register_protocol(&x##_protocol) | 35 extern URLProtocol x##_protocol; \ |
36 if(ENABLE_##X##_PROTOCOL) register_protocol(&x##_protocol); } | |
32 | 37 |
33 /* If you do not call this function, then you can select exactly which | 38 /* If you do not call this function, then you can select exactly which |
34 formats you want to support */ | 39 formats you want to support */ |
35 | 40 |
36 /** | 41 /** |