comparison raw.c @ 1121:787a70a8b867 libavformat

Fix compilation with all combinations of --disable-(de)muxers.
author diego
date Fri, 16 Jun 2006 10:06:57 +0000
parents 0bc9422cc0ad
children d89d7ef290da
comparison
equal deleted inserted replaced
1120:801d4a5cf353 1121:787a70a8b867
676 pcm_read_seek,\ 676 pcm_read_seek,\
677 .extensions = ext,\ 677 .extensions = ext,\
678 .value = codec,\ 678 .value = codec,\
679 }; 679 };
680 680
681 #if !defined(CONFIG_MUXERS) && defined(CONFIG_DEMUXERS) 681 #define PCMOUTPUTDEF(name, long_name, ext, codec) \
682
683 #define PCMDEF(name, long_name, ext, codec) \
684 PCMINPUTDEF(name, long_name, ext, codec)
685
686 #else
687
688 #define PCMDEF(name, long_name, ext, codec) \
689 PCMINPUTDEF(name, long_name, ext, codec)\
690 \
691 AVOutputFormat pcm_ ## name ## _oformat = {\ 682 AVOutputFormat pcm_ ## name ## _oformat = {\
692 #name,\ 683 #name,\
693 long_name,\ 684 long_name,\
694 NULL,\ 685 NULL,\
695 ext,\ 686 ext,\
698 0,\ 689 0,\
699 raw_write_header,\ 690 raw_write_header,\
700 raw_write_packet,\ 691 raw_write_packet,\
701 raw_write_trailer,\ 692 raw_write_trailer,\
702 }; 693 };
703 #endif //CONFIG_MUXERS 694
695
696 #if !defined(CONFIG_MUXERS) && defined(CONFIG_DEMUXERS)
697 #define PCMDEF(name, long_name, ext, codec) \
698 PCMINPUTDEF(name, long_name, ext, codec)
699 #elif defined(CONFIG_MUXERS) && !defined(CONFIG_DEMUXERS)
700 #define PCMDEF(name, long_name, ext, codec) \
701 PCMOUTPUTDEF(name, long_name, ext, codec)
702 #elif defined(CONFIG_MUXERS) && defined(CONFIG_DEMUXERS)
703 #define PCMDEF(name, long_name, ext, codec) \
704 PCMINPUTDEF(name, long_name, ext, codec)\
705 PCMOUTPUTDEF(name, long_name, ext, codec)
706 #else
707 #define PCMDEF(name, long_name, ext, codec)
708 #endif
704 709
705 #ifdef WORDS_BIGENDIAN 710 #ifdef WORDS_BIGENDIAN
706 #define BE_DEF(s) s 711 #define BE_DEF(s) s
707 #define LE_DEF(s) NULL 712 #define LE_DEF(s) NULL
708 #else 713 #else