Revision 49fb20cb libavformat/allformats.c

View differences:

libavformat/allformats.c
24 24

  
25 25
#define REGISTER_MUXER(X,x) { \
26 26
    extern AVOutputFormat x##_muxer; \
27
    if(ENABLE_##X##_MUXER) av_register_output_format(&x##_muxer); }
27
    if(CONFIG_##X##_MUXER) av_register_output_format(&x##_muxer); }
28 28

  
29 29
#define REGISTER_DEMUXER(X,x) { \
30 30
    extern AVInputFormat x##_demuxer; \
31
    if(ENABLE_##X##_DEMUXER) av_register_input_format(&x##_demuxer); }
31
    if(CONFIG_##X##_DEMUXER) av_register_input_format(&x##_demuxer); }
32 32

  
33 33
#define REGISTER_MUXDEMUX(X,x)  REGISTER_MUXER(X,x); REGISTER_DEMUXER(X,x)
34 34

  
35 35
#define REGISTER_PROTOCOL(X,x) { \
36 36
    extern URLProtocol x##_protocol; \
37
    if(ENABLE_##X##_PROTOCOL) register_protocol(&x##_protocol); }
37
    if(CONFIG_##X##_PROTOCOL) register_protocol(&x##_protocol); }
38 38

  
39 39
/* If you do not call this function, then you can select exactly which
40 40
   formats you want to support */

Also available in: Unified diff