From 137e80817d00fca7a5f6ff6d4fc672fcfe4ad501 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 11 Jun 2012 12:40:28 +0000 Subject: 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 --- libavcodec/iff.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libavcodec/iff.c') diff --git a/libavcodec/iff.c b/libavcodec/iff.c index 90cafbd370..57ce570957 100644 --- a/libavcodec/iff.c +++ b/libavcodec/iff.c @@ -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 -- cgit v1.2.3