diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-06-11 12:40:28 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-06-17 00:53:06 +0000 |
commit | 137e80817d00fca7a5f6ff6d4fc672fcfe4ad501 (patch) | |
tree | ff95f61379c6eec9990d17998b64f991c408a670 /libavcodec/wmaenc.c | |
parent | 17fad33f81c7e9787fcdc17934fc1eee6c6aa4bf (diff) | |
download | ffmpeg-137e80817d00fca7a5f6ff6d4fc672fcfe4ad501.tar.gz |
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/wmaenc.c')
-rw-r--r-- | libavcodec/wmaenc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c index 71446e1ce1..7fb84794f5 100644 --- a/libavcodec/wmaenc.c +++ b/libavcodec/wmaenc.c @@ -417,6 +417,7 @@ static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt, return 0; } +#if CONFIG_WMAV1_ENCODER AVCodec ff_wmav1_encoder = { .name = "wmav1", .type = AVMEDIA_TYPE_AUDIO, @@ -429,7 +430,8 @@ AVCodec ff_wmav1_encoder = { AV_SAMPLE_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"), }; - +#endif +#if CONFIG_WMAV2_ENCODER AVCodec ff_wmav2_encoder = { .name = "wmav2", .type = AVMEDIA_TYPE_AUDIO, @@ -442,3 +444,4 @@ AVCodec ff_wmav2_encoder = { AV_SAMPLE_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"), }; +#endif |