[FFmpeg-cvslog] v408: do not unconditionally compile codecs
Paul B Mahol
git at videolan.org
Mon Feb 6 00:29:56 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Feb 6 00:29:32 2012 +0100| [b8d78175d23c7b4cc541274e85ec6a4028445cd3] | committer: Carl Eugen Hoyos
v408: do not unconditionally compile codecs
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b8d78175d23c7b4cc541274e85ec6a4028445cd3
---
libavcodec/v408dec.c | 6 ++++--
libavcodec/v408enc.c | 5 ++++-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/libavcodec/v408dec.c b/libavcodec/v408dec.c
index be15aa1..0f9bc91 100644
--- a/libavcodec/v408dec.c
+++ b/libavcodec/v408dec.c
@@ -103,6 +103,7 @@ static av_cold int v408_decode_close(AVCodecContext *avctx)
return 0;
}
+#if CONFIG_AYUV_DECODER
AVCodec ff_ayuv_decoder = {
.name = "ayuv",
.type = AVMEDIA_TYPE_VIDEO,
@@ -113,7 +114,8 @@ AVCodec ff_ayuv_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed MS 4:4:4:4"),
};
-
+#endif
+#if CONFIG_V408_DECODER
AVCodec ff_v408_decoder = {
.name = "v408",
.type = AVMEDIA_TYPE_VIDEO,
@@ -124,4 +126,4 @@ AVCodec ff_v408_decoder = {
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed QT 4:4:4:4"),
};
-
+#endif
diff --git a/libavcodec/v408enc.c b/libavcodec/v408enc.c
index bbc24ef..e945ba6 100644
--- a/libavcodec/v408enc.c
+++ b/libavcodec/v408enc.c
@@ -89,6 +89,7 @@ static av_cold int v408_encode_close(AVCodecContext *avctx)
return 0;
}
+#if CONFIG_AYUV_ENCODER
AVCodec ff_ayuv_encoder = {
.name = "ayuv",
.type = AVMEDIA_TYPE_VIDEO,
@@ -99,7 +100,8 @@ AVCodec ff_ayuv_encoder = {
.pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUVA444P, PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed MS 4:4:4:4"),
};
-
+#endif
+#if CONFIG_V408_ENCODER
AVCodec ff_v408_encoder = {
.name = "v408",
.type = AVMEDIA_TYPE_VIDEO,
@@ -110,3 +112,4 @@ AVCodec ff_v408_encoder = {
.pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUVA444P, PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed packed QT 4:4:4:4"),
};
+#endif
More information about the ffmpeg-cvslog
mailing list