summaryrefslogtreecommitdiffstats
path: root/libavcodec/aacenc.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-11-09 00:09:30 +0100
committerClément Bœsch <ubitux@gmail.com>2012-11-12 22:28:57 +0100
commit7581ad24a9240e9af4f344d0cb6a41fbe7ae71cd (patch)
tree45c70a75ed2bd88f4de94a1ec3aeeee36e04b0d4 /libavcodec/aacenc.c
parent0e239b22dbbe6808ac08ca72825f734076d4dc81 (diff)
downloadffmpeg-streaming-7581ad24a9240e9af4f344d0cb6a41fbe7ae71cd.zip
ffmpeg-streaming-7581ad24a9240e9af4f344d0cb6a41fbe7ae71cd.tar.gz
lavc/aac: fix shared build failures with MSVC.
This is a workaround until a better solution is found.
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r--libavcodec/aacenc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index fe5b84d..22962a3 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -811,6 +811,13 @@ static const AVClass aacenc_class = {
LIBAVUTIL_VERSION_INT,
};
+/* duplicated from avpriv_mpeg4audio_sample_rates to avoid shared build
+ * failures */
+static const int mpeg4audio_sample_rates[16] = {
+ 96000, 88200, 64000, 48000, 44100, 32000,
+ 24000, 22050, 16000, 12000, 11025, 8000, 7350
+};
+
AVCodec ff_aac_encoder = {
.name = "aac",
.type = AVMEDIA_TYPE_AUDIO,
@@ -819,7 +826,7 @@ AVCodec ff_aac_encoder = {
.init = aac_encode_init,
.encode2 = aac_encode_frame,
.close = aac_encode_end,
- .supported_samplerates = avpriv_mpeg4audio_sample_rates,
+ .supported_samplerates = mpeg4audio_sample_rates,
.capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY |
CODEC_CAP_EXPERIMENTAL,
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP,
OpenPOWER on IntegriCloud