Commit ab213b53 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'e6bda9a9'

* commit 'e6bda9a9':
  libopencore-amr: Conditionally compile decoder and encoder bits
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 4ff0e63a e6bda9a9
...@@ -61,6 +61,7 @@ typedef struct AMRContext { ...@@ -61,6 +61,7 @@ typedef struct AMRContext {
AudioFrameQueue afq; AudioFrameQueue afq;
} AMRContext; } AMRContext;
#if CONFIG_LIBOPENCORE_AMRNB_DECODER
static av_cold int amr_nb_decode_init(AVCodecContext *avctx) static av_cold int amr_nb_decode_init(AVCodecContext *avctx)
{ {
AMRContext *s = avctx->priv_data; AMRContext *s = avctx->priv_data;
...@@ -138,7 +139,9 @@ AVCodec ff_libopencore_amrnb_decoder = { ...@@ -138,7 +139,9 @@ AVCodec ff_libopencore_amrnb_decoder = {
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("OpenCORE AMR-NB (Adaptive Multi-Rate Narrow-Band)"), .long_name = NULL_IF_CONFIG_SMALL("OpenCORE AMR-NB (Adaptive Multi-Rate Narrow-Band)"),
}; };
#endif /* CONFIG_LIBOPENCORE_AMRNB_DECODER */
#if CONFIG_LIBOPENCORE_AMRNB_ENCODER
/* Common code for fixed and float version*/ /* Common code for fixed and float version*/
typedef struct AMR_bitrates { typedef struct AMR_bitrates {
int rate; int rate;
...@@ -300,8 +303,9 @@ AVCodec ff_libopencore_amrnb_encoder = { ...@@ -300,8 +303,9 @@ AVCodec ff_libopencore_amrnb_encoder = {
.long_name = NULL_IF_CONFIG_SMALL("OpenCORE AMR-NB (Adaptive Multi-Rate Narrow-Band)"), .long_name = NULL_IF_CONFIG_SMALL("OpenCORE AMR-NB (Adaptive Multi-Rate Narrow-Band)"),
.priv_class = &class, .priv_class = &class,
}; };
#endif /* CONFIG_LIBOPENCORE_AMRNB_ENCODER */
#endif #endif /* CONFIG_LIBOPENCORE_AMRNB */
/* -----------AMR wideband ------------*/ /* -----------AMR wideband ------------*/
#if CONFIG_LIBOPENCORE_AMRWB #if CONFIG_LIBOPENCORE_AMRWB
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment