summaryrefslogtreecommitdiff
path: root/libavcodec/bintext.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-23 23:03:55 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-03-24 05:44:37 +0100
commit68a257e6730a6a59b2d3b22172e82f97d9feae66 (patch)
tree88573371085c31f91d2fe254abf0ca982bd2e640 /libavcodec/bintext.c
parentd85b3c4fff4c4b255232fcc01edbd57f19d60998 (diff)
bintext: build decoders only if they are actually enabled
Signed-off-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bintext.c')
-rw-r--r--libavcodec/bintext.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/bintext.c b/libavcodec/bintext.c
index 91167ba150..463e4ac661 100644
--- a/libavcodec/bintext.c
+++ b/libavcodec/bintext.c
@@ -210,6 +210,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
return 0;
}
+#if CONFIG_BINTEXT_DECODER
AVCodec ff_bintext_decoder = {
.name = "bintext",
.type = AVMEDIA_TYPE_VIDEO,
@@ -221,7 +222,8 @@ AVCodec ff_bintext_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Binary text"),
};
-
+#endif
+#if CONFIG_XBIN_DECODER
AVCodec ff_xbin_decoder = {
.name = "xbin",
.type = AVMEDIA_TYPE_VIDEO,
@@ -233,7 +235,8 @@ AVCodec ff_xbin_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("eXtended BINary text"),
};
-
+#endif
+#if CONFIG_IDF_DECODER
AVCodec ff_idf_decoder = {
.name = "idf",
.type = AVMEDIA_TYPE_VIDEO,
@@ -245,3 +248,4 @@ AVCodec ff_idf_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("iCEDraw text"),
};
+#endif