Mercurial > libavcodec.hg
comparison libopencore-amr.c @ 11560:8a4984c5cacc libavcodec
Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.
author | stefano |
---|---|
date | Tue, 30 Mar 2010 23:30:55 +0000 |
parents | 7955db355703 |
children |
comparison
equal
deleted
inserted
replaced
11559:444f4b594fdb | 11560:8a4984c5cacc |
---|---|
139 return packet_size; | 139 return packet_size; |
140 } | 140 } |
141 | 141 |
142 AVCodec libopencore_amrnb_decoder = { | 142 AVCodec libopencore_amrnb_decoder = { |
143 "libopencore_amrnb", | 143 "libopencore_amrnb", |
144 CODEC_TYPE_AUDIO, | 144 AVMEDIA_TYPE_AUDIO, |
145 CODEC_ID_AMR_NB, | 145 CODEC_ID_AMR_NB, |
146 sizeof(AMRContext), | 146 sizeof(AMRContext), |
147 amr_nb_decode_init, | 147 amr_nb_decode_init, |
148 NULL, | 148 NULL, |
149 amr_nb_decode_close, | 149 amr_nb_decode_close, |
213 return written; | 213 return written; |
214 } | 214 } |
215 | 215 |
216 AVCodec libopencore_amrnb_encoder = { | 216 AVCodec libopencore_amrnb_encoder = { |
217 "libopencore_amrnb", | 217 "libopencore_amrnb", |
218 CODEC_TYPE_AUDIO, | 218 AVMEDIA_TYPE_AUDIO, |
219 CODEC_ID_AMR_NB, | 219 CODEC_ID_AMR_NB, |
220 sizeof(AMRContext), | 220 sizeof(AMRContext), |
221 amr_nb_encode_init, | 221 amr_nb_encode_init, |
222 amr_nb_encode_frame, | 222 amr_nb_encode_frame, |
223 amr_nb_encode_close, | 223 amr_nb_encode_close, |
310 return 0; | 310 return 0; |
311 } | 311 } |
312 | 312 |
313 AVCodec libopencore_amrwb_decoder = { | 313 AVCodec libopencore_amrwb_decoder = { |
314 "libopencore_amrwb", | 314 "libopencore_amrwb", |
315 CODEC_TYPE_AUDIO, | 315 AVMEDIA_TYPE_AUDIO, |
316 CODEC_ID_AMR_WB, | 316 CODEC_ID_AMR_WB, |
317 sizeof(AMRWBContext), | 317 sizeof(AMRWBContext), |
318 amr_wb_decode_init, | 318 amr_wb_decode_init, |
319 NULL, | 319 NULL, |
320 amr_wb_decode_close, | 320 amr_wb_decode_close, |