aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-04-16 09:39:40 +0000
committerPaul B Mahol <onemda@gmail.com>2013-04-16 10:20:17 +0000
commit82082695de3bde1a960769af12014ab48c64f8f7 (patch)
tree0f365f253b86970d40c1cbc4e9e74c910cba8d49
parentf05cfb654fe9bae69722350058904763e2d4b8f1 (diff)
downloadffmpeg-82082695de3bde1a960769af12014ab48c64f8f7.tar.gz
libaacplus: set supported channel_layouts
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/libaacplus.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/libaacplus.c b/libavcodec/libaacplus.c
index 2e09c9a261..a06ce36820 100644
--- a/libavcodec/libaacplus.c
+++ b/libavcodec/libaacplus.c
@@ -119,6 +119,12 @@ static av_cold int aacPlus_encode_close(AVCodecContext *avctx)
return 0;
}
+static const uint64_t channel_layouts[] = {
+ AV_CH_LAYOUT_MONO,
+ AV_CH_LAYOUT_STEREO,
+ 0,
+};
+
AVCodec ff_libaacplus_encoder = {
.name = "libaacplus",
.type = AVMEDIA_TYPE_AUDIO,
@@ -130,4 +136,7 @@ AVCodec ff_libaacplus_encoder = {
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
AV_SAMPLE_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("libaacplus AAC+ (Advanced Audio Codec with SBR+PS)"),
+ .channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO,
+ AV_CH_LAYOUT_STEREO,
+ 0 },
};