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>
This commit is contained in:
parent
d85b3c4fff
commit
68a257e673
@ -210,6 +210,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG_BINTEXT_DECODER
|
||||||
AVCodec ff_bintext_decoder = {
|
AVCodec ff_bintext_decoder = {
|
||||||
.name = "bintext",
|
.name = "bintext",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
@ -221,7 +222,8 @@ AVCodec ff_bintext_decoder = {
|
|||||||
.capabilities = CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Binary text"),
|
.long_name = NULL_IF_CONFIG_SMALL("Binary text"),
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
#if CONFIG_XBIN_DECODER
|
||||||
AVCodec ff_xbin_decoder = {
|
AVCodec ff_xbin_decoder = {
|
||||||
.name = "xbin",
|
.name = "xbin",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
@ -233,7 +235,8 @@ AVCodec ff_xbin_decoder = {
|
|||||||
.capabilities = CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("eXtended BINary text"),
|
.long_name = NULL_IF_CONFIG_SMALL("eXtended BINary text"),
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
#if CONFIG_IDF_DECODER
|
||||||
AVCodec ff_idf_decoder = {
|
AVCodec ff_idf_decoder = {
|
||||||
.name = "idf",
|
.name = "idf",
|
||||||
.type = AVMEDIA_TYPE_VIDEO,
|
.type = AVMEDIA_TYPE_VIDEO,
|
||||||
@ -245,3 +248,4 @@ AVCodec ff_idf_decoder = {
|
|||||||
.capabilities = CODEC_CAP_DR1,
|
.capabilities = CODEC_CAP_DR1,
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("iCEDraw text"),
|
.long_name = NULL_IF_CONFIG_SMALL("iCEDraw text"),
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user