diff options
author | Diego Biurrun <diego@biurrun.de> | 2006-06-16 10:06:57 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-06-16 10:06:57 +0000 |
commit | 2c8e20142928c5440606c9e8f9bfb5a6ca0ad560 (patch) | |
tree | 1b6ba4720f2f6c9e0e5fe79efd0303bb55c07bf9 | |
parent | a5e9102b4b2c853a75fb46a97968e26e1d8064a3 (diff) | |
download | ffmpeg-2c8e20142928c5440606c9e8f9bfb5a6ca0ad560.tar.gz |
Fix compilation with all combinations of --disable-(de)muxers.
Originally committed as revision 5485 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/raw.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c index aaca88103d..9b6516be1a 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -678,16 +678,7 @@ AVInputFormat pcm_ ## name ## _iformat = {\ .value = codec,\ }; -#if !defined(CONFIG_MUXERS) && defined(CONFIG_DEMUXERS) - -#define PCMDEF(name, long_name, ext, codec) \ - PCMINPUTDEF(name, long_name, ext, codec) - -#else - -#define PCMDEF(name, long_name, ext, codec) \ - PCMINPUTDEF(name, long_name, ext, codec)\ -\ +#define PCMOUTPUTDEF(name, long_name, ext, codec) \ AVOutputFormat pcm_ ## name ## _oformat = {\ #name,\ long_name,\ @@ -700,7 +691,21 @@ AVOutputFormat pcm_ ## name ## _oformat = {\ raw_write_packet,\ raw_write_trailer,\ }; -#endif //CONFIG_MUXERS + + +#if !defined(CONFIG_MUXERS) && defined(CONFIG_DEMUXERS) +#define PCMDEF(name, long_name, ext, codec) \ + PCMINPUTDEF(name, long_name, ext, codec) +#elif defined(CONFIG_MUXERS) && !defined(CONFIG_DEMUXERS) +#define PCMDEF(name, long_name, ext, codec) \ + PCMOUTPUTDEF(name, long_name, ext, codec) +#elif defined(CONFIG_MUXERS) && defined(CONFIG_DEMUXERS) +#define PCMDEF(name, long_name, ext, codec) \ + PCMINPUTDEF(name, long_name, ext, codec)\ + PCMOUTPUTDEF(name, long_name, ext, codec) +#else +#define PCMDEF(name, long_name, ext, codec) +#endif #ifdef WORDS_BIGENDIAN #define BE_DEF(s) s |