Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-06-11 16:40:28 +0400
committerPaul B Mahol <onemda@gmail.com>2012-06-17 04:53:06 +0400
commit137e80817d00fca7a5f6ff6d4fc672fcfe4ad501 (patch)
treeff95f61379c6eec9990d17998b64f991c408a670 /libavcodec/asv1.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/asv1.c')
-rw-r--r--libavcodec/asv1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c
index 702a59ee3f..571af56a69 100644
--- a/libavcodec/asv1.c
+++ b/libavcodec/asv1.c
@@ -614,6 +614,7 @@ static av_cold int decode_end(AVCodecContext *avctx){
return 0;
}
+#if CONFIG_ASV1_DECODER
AVCodec ff_asv1_decoder = {
.name = "asv1",
.type = AVMEDIA_TYPE_VIDEO,
@@ -625,7 +626,9 @@ AVCodec ff_asv1_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("ASUS V1"),
};
+#endif
+#if CONFIG_ASV2_DECODER
AVCodec ff_asv2_decoder = {
.name = "asv2",
.type = AVMEDIA_TYPE_VIDEO,
@@ -637,6 +640,7 @@ AVCodec ff_asv2_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("ASUS V2"),
};
+#endif
#if CONFIG_ASV1_ENCODER
AVCodec ff_asv1_encoder = {