diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-08-01 07:33:56 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-08-08 07:53:48 +0200 |
commit | 94364b7d425bdb150f3b92fb94e7cc2a32ef325f (patch) | |
tree | 9b95f987c752407581b8e6d8ab7d8a4de2671606 /libavcodec | |
parent | 927e92cdc7f442a526ba1266420181d4418c02f3 (diff) | |
download | ffmpeg-94364b7d425bdb150f3b92fb94e7cc2a32ef325f.tar.gz |
mpegaudioenc: list supported channel layouts.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegaudioenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/mpegaudioenc.c b/libavcodec/mpegaudioenc.c index bc44aed12d..36777d4804 100644 --- a/libavcodec/mpegaudioenc.c +++ b/libavcodec/mpegaudioenc.c @@ -24,6 +24,8 @@ * The simplest mpeg audio layer 2 encoder. */ +#include "libavutil/audioconvert.h" + #include "avcodec.h" #include "internal.h" #include "put_bits.h" @@ -794,6 +796,9 @@ AVCodec ff_mp2_encoder = { .supported_samplerates = (const int[]){ 44100, 48000, 32000, 22050, 24000, 16000, 0 }, + .channel_layouts = (const uint64_t[]){ AV_CH_LAYOUT_MONO, + AV_CH_LAYOUT_STEREO, + 0 }, .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"), .defaults = mp2_defaults, }; |