Browse code

v408: do not unconditionally compile codecs

Paul B Mahol authored on 2012/02/06 08:29:32
Showing 2 changed files
... ...
@@ -103,6 +103,7 @@ static av_cold int v408_decode_close(AVCodecContext *avctx)
103 103
     return 0;
104 104
 }
105 105
 
106
+#if CONFIG_AYUV_DECODER
106 107
 AVCodec ff_ayuv_decoder = {
107 108
     .name         = "ayuv",
108 109
     .type         = AVMEDIA_TYPE_VIDEO,
... ...
@@ -113,7 +114,8 @@ AVCodec ff_ayuv_decoder = {
113 113
     .capabilities = CODEC_CAP_DR1,
114 114
     .long_name    = NULL_IF_CONFIG_SMALL("Uncompressed packed MS 4:4:4:4"),
115 115
 };
116
-
116
+#endif
117
+#if CONFIG_V408_DECODER
117 118
 AVCodec ff_v408_decoder = {
118 119
     .name         = "v408",
119 120
     .type         = AVMEDIA_TYPE_VIDEO,
... ...
@@ -124,4 +126,4 @@ AVCodec ff_v408_decoder = {
124 124
     .capabilities = CODEC_CAP_DR1,
125 125
     .long_name    = NULL_IF_CONFIG_SMALL("Uncompressed packed QT 4:4:4:4"),
126 126
 };
127
-
127
+#endif
... ...
@@ -89,6 +89,7 @@ static av_cold int v408_encode_close(AVCodecContext *avctx)
89 89
     return 0;
90 90
 }
91 91
 
92
+#if CONFIG_AYUV_ENCODER
92 93
 AVCodec ff_ayuv_encoder = {
93 94
     .name         = "ayuv",
94 95
     .type         = AVMEDIA_TYPE_VIDEO,
... ...
@@ -99,7 +100,8 @@ AVCodec ff_ayuv_encoder = {
99 99
     .pix_fmts     = (const enum PixelFormat[]){ PIX_FMT_YUVA444P, PIX_FMT_NONE },
100 100
     .long_name    = NULL_IF_CONFIG_SMALL("Uncompressed packed MS 4:4:4:4"),
101 101
 };
102
-
102
+#endif
103
+#if CONFIG_V408_ENCODER
103 104
 AVCodec ff_v408_encoder = {
104 105
     .name         = "v408",
105 106
     .type         = AVMEDIA_TYPE_VIDEO,
... ...
@@ -110,3 +112,4 @@ AVCodec ff_v408_encoder = {
110 110
     .pix_fmts     = (const enum PixelFormat[]){ PIX_FMT_YUVA444P, PIX_FMT_NONE },
111 111
     .long_name    = NULL_IF_CONFIG_SMALL("Uncompressed packed QT 4:4:4:4"),
112 112
 };
113
+#endif