[FFmpeg-cvslog] libfdk-aac: Limit to supported sample rates.

Nathan Caldwell git at videolan.org
Tue Sep 25 16:15:40 CEST 2012


ffmpeg | branch: master | Nathan Caldwell <saintdev at gmail.com> | Mon Sep 24 17:02:44 2012 -0600| [94a69dee64553374d5ce6a5ff3b0928fada52fd0] | committer: Martin Storsjö

libfdk-aac: Limit to supported sample rates.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=94a69dee64553374d5ce6a5ff3b0928fada52fd0
---

 libavcodec/libfdk-aacenc.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c
index c9ecc4c..b046c7f 100644
--- a/libavcodec/libfdk-aacenc.c
+++ b/libavcodec/libfdk-aacenc.c
@@ -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,
 };



More information about the ffmpeg-cvslog mailing list