diff options
author | Alex Converse <alex.converse@gmail.com> | 2012-04-16 21:35:11 +0400 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2012-04-17 01:09:51 +0400 |
commit | ca332b1d8c9d869c4dd98a6eae5e464d702948cc (patch) | |
tree | ee0f1fa403145fa5402e0ba34cfab0ab55a7d76a /libavcodec | |
parent | b3b175120151b9d39f05a7e24e322a70ab835138 (diff) |
faac: Add .channel_layouts
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libfaac.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/libfaac.c b/libavcodec/libfaac.c index bb19083142..66277949b0 100644 --- a/libavcodec/libfaac.c +++ b/libavcodec/libfaac.c @@ -29,6 +29,7 @@ #include "avcodec.h" #include "audio_frame_queue.h" #include "internal.h" +#include "libavutil/audioconvert.h" /* libfaac has an encoder delay of 1024 samples */ @@ -214,6 +215,16 @@ static const AVProfile profiles[] = { { FF_PROFILE_UNKNOWN }, }; +static const uint64_t faac_channel_layouts[] = { + AV_CH_LAYOUT_MONO, + AV_CH_LAYOUT_STEREO, + AV_CH_LAYOUT_SURROUND, + AV_CH_LAYOUT_4POINT0, + AV_CH_LAYOUT_5POINT0_BACK, + AV_CH_LAYOUT_5POINT1_BACK, + 0 +}; + AVCodec ff_libfaac_encoder = { .name = "libfaac", .type = AVMEDIA_TYPE_AUDIO, @@ -227,4 +238,5 @@ AVCodec ff_libfaac_encoder = { AV_SAMPLE_FMT_NONE }, .long_name = NULL_IF_CONFIG_SMALL("libfaac AAC (Advanced Audio Codec)"), .profiles = NULL_IF_CONFIG_SMALL(profiles), + .channel_layouts = faac_channel_layouts, }; |