[FFmpeg-cvslog] aac: reference supported sample rates in encoders.

Clément Bœsch git at videolan.org
Mon Mar 26 22:48:11 CEST 2012


ffmpeg | branch: master | Clément Bœsch <clement.boesch at smartjog.com> | Mon Mar 26 22:32:17 2012 +0200| [29679f4a372eb208af31c57177ab49f67c698362] | committer: Clément Bœsch

aac: reference supported sample rates in encoders.

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

 libavcodec/aacenc.c       |    1 +
 libavcodec/libvo-aacenc.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index cf4aef9..fd72daf 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -816,6 +816,7 @@ AVCodec ff_aac_encoder = {
     .init           = aac_encode_init,
     .encode2        = aac_encode_frame,
     .close          = aac_encode_end,
+    .supported_samplerates = avpriv_mpeg4audio_sample_rates,
     .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY | CODEC_CAP_EXPERIMENTAL,
     .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE},
     .long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"),
diff --git a/libavcodec/libvo-aacenc.c b/libavcodec/libvo-aacenc.c
index 8f7c581..c5191ec 100644
--- a/libavcodec/libvo-aacenc.c
+++ b/libavcodec/libvo-aacenc.c
@@ -193,6 +193,7 @@ AVCodec ff_libvo_aacenc_encoder = {
     .init           = aac_encode_init,
     .encode2        = aac_encode_frame,
     .close          = aac_encode_close,
+    .supported_samplerates = avpriv_mpeg4audio_sample_rates,
     .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("Android VisualOn AAC"),



More information about the ffmpeg-cvslog mailing list