Mercurial > libavcodec.hg
comparison libgsm.c @ 7040:e943e1409077 libavcodec
Make AVCodec long_names definition conditional depending on CONFIG_SMALL.
author | stefano |
---|---|
date | Thu, 12 Jun 2008 21:50:13 +0000 |
parents | 1c3bcb60bed4 |
children | 85ab7655ad4d |
comparison
equal
deleted
inserted
replaced
7039:b252326ba895 | 7040:e943e1409077 |
---|---|
115 CODEC_ID_GSM, | 115 CODEC_ID_GSM, |
116 0, | 116 0, |
117 libgsm_init, | 117 libgsm_init, |
118 libgsm_encode_frame, | 118 libgsm_encode_frame, |
119 libgsm_close, | 119 libgsm_close, |
120 .long_name = "libgsm GSM", | 120 .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"), |
121 }; | 121 }; |
122 | 122 |
123 AVCodec libgsm_ms_encoder = { | 123 AVCodec libgsm_ms_encoder = { |
124 "libgsm_ms", | 124 "libgsm_ms", |
125 CODEC_TYPE_AUDIO, | 125 CODEC_TYPE_AUDIO, |
126 CODEC_ID_GSM_MS, | 126 CODEC_ID_GSM_MS, |
127 0, | 127 0, |
128 libgsm_init, | 128 libgsm_init, |
129 libgsm_encode_frame, | 129 libgsm_encode_frame, |
130 libgsm_close, | 130 libgsm_close, |
131 .long_name = "libgsm GSM Microsoft variant", | 131 .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"), |
132 }; | 132 }; |
133 | 133 |
134 static int libgsm_decode_frame(AVCodecContext *avctx, | 134 static int libgsm_decode_frame(AVCodecContext *avctx, |
135 void *data, int *data_size, | 135 void *data, int *data_size, |
136 uint8_t *buf, int buf_size) { | 136 uint8_t *buf, int buf_size) { |
156 0, | 156 0, |
157 libgsm_init, | 157 libgsm_init, |
158 NULL, | 158 NULL, |
159 libgsm_close, | 159 libgsm_close, |
160 libgsm_decode_frame, | 160 libgsm_decode_frame, |
161 .long_name = "libgsm GSM", | 161 .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"), |
162 }; | 162 }; |
163 | 163 |
164 AVCodec libgsm_ms_decoder = { | 164 AVCodec libgsm_ms_decoder = { |
165 "libgsm_ms", | 165 "libgsm_ms", |
166 CODEC_TYPE_AUDIO, | 166 CODEC_TYPE_AUDIO, |
168 0, | 168 0, |
169 libgsm_init, | 169 libgsm_init, |
170 NULL, | 170 NULL, |
171 libgsm_close, | 171 libgsm_close, |
172 libgsm_decode_frame, | 172 libgsm_decode_frame, |
173 .long_name = "libgsm GSM Microsoft variant", | 173 .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"), |
174 }; | 174 }; |