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/mjpegenc.c | |
parent | 17fad33f81c7e9787fcdc17934fc1eee6c6aa4bf (diff) | |
download | ffmpeg-streaming-137e80817d00fca7a5f6ff6d4fc672fcfe4ad501.zip ffmpeg-streaming-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/mjpegenc.c')
-rw-r--r-- | libavcodec/mjpegenc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index 34c9d7a..068f15c 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -498,6 +498,7 @@ static int amv_encode_picture(AVCodecContext *avctx, AVPacket *pkt, return ff_MPV_encode_picture(avctx, pkt, &pic, got_packet); } +#if CONFIG_MJPEG_ENCODER AVCodec ff_mjpeg_encoder = { .name = "mjpeg", .type = AVMEDIA_TYPE_VIDEO, @@ -512,7 +513,8 @@ AVCodec ff_mjpeg_encoder = { }, .long_name = NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"), }; - +#endif +#if CONFIG_AMV_ENCODER AVCodec ff_amv_encoder = { .name = "amv", .type = AVMEDIA_TYPE_VIDEO, @@ -526,3 +528,4 @@ AVCodec ff_amv_encoder = { }, .long_name = NULL_IF_CONFIG_SMALL("AMV Video"), }; +#endif |