comparison pcm.c @ 8590:7a463923ecd1 libavcodec

Change semantic of CONFIG_*, HAVE_* and ARCH_*. They are now always defined to either 0 or 1.
author aurel
date Tue, 13 Jan 2009 23:44:16 +0000
parents 4525dcd81357
children db00335551ca
comparison
equal deleted inserted replaced
8589:a29b5b5c3c9d 8590:7a463923ecd1
505 } 505 }
506 *data_size = (uint8_t *)samples - (uint8_t *)data; 506 *data_size = (uint8_t *)samples - (uint8_t *)data;
507 return src - buf; 507 return src - buf;
508 } 508 }
509 509
510 #ifdef CONFIG_ENCODERS 510 #if CONFIG_ENCODERS
511 #define PCM_ENCODER(id,sample_fmt_,name,long_name_) \ 511 #define PCM_ENCODER(id,sample_fmt_,name,long_name_) \
512 AVCodec name ## _encoder = { \ 512 AVCodec name ## _encoder = { \
513 #name, \ 513 #name, \
514 CODEC_TYPE_AUDIO, \ 514 CODEC_TYPE_AUDIO, \
515 id, \ 515 id, \
523 }; 523 };
524 #else 524 #else
525 #define PCM_ENCODER(id,sample_fmt_,name,long_name_) 525 #define PCM_ENCODER(id,sample_fmt_,name,long_name_)
526 #endif 526 #endif
527 527
528 #ifdef CONFIG_DECODERS 528 #if CONFIG_DECODERS
529 #define PCM_DECODER(id,sample_fmt_,name,long_name_) \ 529 #define PCM_DECODER(id,sample_fmt_,name,long_name_) \
530 AVCodec name ## _decoder = { \ 530 AVCodec name ## _decoder = { \
531 #name, \ 531 #name, \
532 CODEC_TYPE_AUDIO, \ 532 CODEC_TYPE_AUDIO, \
533 id, \ 533 id, \