lavc: build some codecs only if they are actually enabled

Saves few bytes if only some of them in same file are enabled.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-06-11 12:40:28 +00:00
parent 17fad33f81
commit 137e80817d
13 changed files with 56 additions and 15 deletions

View file

@ -683,6 +683,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
return 0;
}
#if CONFIG_IFF_ILBM_DECODER
AVCodec ff_iff_ilbm_decoder = {
.name = "iff_ilbm",
.type = AVMEDIA_TYPE_VIDEO,
@ -694,7 +695,8 @@ AVCodec ff_iff_ilbm_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("IFF ILBM"),
};
#endif
#if CONFIG_IFF_BYTERUN1_DECODER
AVCodec ff_iff_byterun1_decoder = {
.name = "iff_byterun1",
.type = AVMEDIA_TYPE_VIDEO,
@ -706,3 +708,4 @@ AVCodec ff_iff_byterun1_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("IFF ByteRun1"),
};
#endif