[FFmpeg-devel] [PATCH 3/3] aac: reference supported sample rates in encoders.
Clément Bœsch
ubitux at gmail.com
Tue Mar 20 16:38:14 CET 2012
From: Clément Bœsch <clement.boesch at smartjog.com>
---
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 14be58f..958bd58 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -787,6 +787,7 @@ AVCodec ff_aac_encoder = {
.init = aac_encode_init,
.encode = 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 bb6d50f..6ee5564 100644
--- a/libavcodec/libvo-aacenc.c
+++ b/libavcodec/libvo-aacenc.c
@@ -125,6 +125,7 @@ AVCodec ff_libvo_aacenc_encoder = {
.init = aac_encode_init,
.encode = aac_encode_frame,
.close = aac_encode_close,
+ .supported_samplerates = avpriv_mpeg4audio_sample_rates,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("Android VisualOn AAC"),
};
--
1.7.9.1
More information about the ffmpeg-devel
mailing list