mpegaudioenc: list supported channel layouts.

This commit is contained in:
Anton Khirnov 2012-08-01 07:33:56 +02:00
parent 927e92cdc7
commit 94364b7d42
1 changed files with 5 additions and 0 deletions

View File

@ -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,
};