summaryrefslogtreecommitdiff
path: root/libavcodec/imc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-06-11 12:40:28 +0000
committerPaul B Mahol <onemda@gmail.com>2012-06-17 00:53:06 +0000
commit137e80817d00fca7a5f6ff6d4fc672fcfe4ad501 (patch)
treeff95f61379c6eec9990d17998b64f991c408a670 /libavcodec/imc.c
parent17fad33f81c7e9787fcdc17934fc1eee6c6aa4bf (diff)
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>
Diffstat (limited to 'libavcodec/imc.c')
-rw-r--r--libavcodec/imc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index 172c862ec6..2650bf7821 100644
--- a/libavcodec/imc.c
+++ b/libavcodec/imc.c
@@ -991,7 +991,7 @@ static av_cold int imc_decode_close(AVCodecContext * avctx)
return 0;
}
-
+#if CONFIG_IMC_DECODER
AVCodec ff_imc_decoder = {
.name = "imc",
.type = AVMEDIA_TYPE_AUDIO,
@@ -1003,7 +1003,8 @@ AVCodec ff_imc_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("IMC (Intel Music Coder)"),
};
-
+#endif
+#if CONFIG_IAC_DECODER
AVCodec ff_iac_decoder = {
.name = "iac",
.type = AVMEDIA_TYPE_AUDIO,
@@ -1015,3 +1016,4 @@ AVCodec ff_iac_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("IAC (Indeo Audio Coder)"),
};
+#endif