|
|
@@ -391,20 +391,26 @@ static const uint64_t aac_channel_layout[] = { |
|
|
|
0, |
|
|
|
}; |
|
|
|
|
|
|
|
static const int aac_sample_rates[] = { |
|
|
|
96000, 88200, 64000, 48000, 44100, 32000, |
|
|
|
24000, 22050, 16000, 12000, 11025, 8000, 0 |
|
|
|
}; |
|
|
|
|
|
|
|
AVCodec ff_libfdk_aac_encoder = { |
|
|
|
.name = "libfdk_aac", |
|
|
|
.type = AVMEDIA_TYPE_AUDIO, |
|
|
|
.id = AV_CODEC_ID_AAC, |
|
|
|
.priv_data_size = sizeof(AACContext), |
|
|
|
.init = aac_encode_init, |
|
|
|
.encode2 = aac_encode_frame, |
|
|
|
.close = aac_encode_close, |
|
|
|
.capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY, |
|
|
|
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
|
|
AV_SAMPLE_FMT_NONE }, |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("Fraunhofer FDK AAC"), |
|
|
|
.priv_class = &aac_enc_class, |
|
|
|
.defaults = aac_encode_defaults, |
|
|
|
.profiles = profiles, |
|
|
|
.channel_layouts = aac_channel_layout, |
|
|
|
.name = "libfdk_aac", |
|
|
|
.type = AVMEDIA_TYPE_AUDIO, |
|
|
|
.id = AV_CODEC_ID_AAC, |
|
|
|
.priv_data_size = sizeof(AACContext), |
|
|
|
.init = aac_encode_init, |
|
|
|
.encode2 = aac_encode_frame, |
|
|
|
.close = aac_encode_close, |
|
|
|
.capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY, |
|
|
|
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
|
|
AV_SAMPLE_FMT_NONE }, |
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("Fraunhofer FDK AAC"), |
|
|
|
.priv_class = &aac_enc_class, |
|
|
|
.defaults = aac_encode_defaults, |
|
|
|
.profiles = profiles, |
|
|
|
.supported_samplerates = aac_sample_rates, |
|
|
|
.channel_layouts = aac_channel_layout, |
|
|
|
}; |