diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-11-07 22:54:31 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-11-07 22:54:31 +0000 |
commit | 2b045c9caafa1e64933c6b441510510341f9ad2d (patch) | |
tree | 2921aa27cf34fcde3d4698dea1c36d1b2220ad8b | |
parent | a319c212bdefec27b3ee4055ad8555637a77e57a (diff) | |
download | ffmpeg-2b045c9caafa1e64933c6b441510510341f9ad2d.tar.gz |
split definition of PCM_CODEC into PCM_ENCODER and PCM_DECODER
Originally committed as revision 10946 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/pcm.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index c4ed107410..d070628a04 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -483,7 +483,8 @@ static int pcm_decode_frame(AVCodecContext *avctx, return src - buf; } -#define PCM_CODEC(id, name) \ +#ifdef CONFIG_ENCODERS +#define PCM_ENCODER(id,name) \ AVCodec name ## _encoder = { \ #name, \ CODEC_TYPE_AUDIO, \ @@ -493,7 +494,13 @@ AVCodec name ## _encoder = { \ pcm_encode_frame, \ pcm_encode_close, \ NULL, \ -}; \ +}; +#else +#define PCM_ENCODER(id,name) +#endif + +#ifdef CONFIG_DECODERS +#define PCM_DECODER(id,name) \ AVCodec name ## _decoder = { \ #name, \ CODEC_TYPE_AUDIO, \ @@ -503,7 +510,13 @@ AVCodec name ## _decoder = { \ NULL, \ NULL, \ pcm_decode_frame, \ -} +}; +#else +#define PCM_DECODER(id,name) +#endif + +#define PCM_CODEC(id, name) \ +PCM_ENCODER(id,name) PCM_DECODER(id,name) PCM_CODEC(CODEC_ID_PCM_S32LE, pcm_s32le); PCM_CODEC(CODEC_ID_PCM_S32BE, pcm_s32be); |