1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

libfdk-aac: Limit to supported sample rates.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Nathan Caldwell 2012-09-24 17:02:44 -06:00 committed by Martin Storsjö
parent 2768b71798
commit 94a69dee64

View File

@ -393,6 +393,11 @@ 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,
@ -408,5 +413,6 @@ AVCodec ff_libfdk_aac_encoder = {
.priv_class = &aac_enc_class,
.defaults = aac_encode_defaults,
.profiles = profiles,
.supported_samplerates = aac_sample_rates,
.channel_layouts = aac_channel_layout,
};