1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

mpegaudioenc: list supported channel layouts.

This commit is contained in:
Anton Khirnov 2012-08-01 07:33:56 +02:00
parent 927e92cdc7
commit 94364b7d42

View File

@ -24,6 +24,8 @@
* The simplest mpeg audio layer 2 encoder. * The simplest mpeg audio layer 2 encoder.
*/ */
#include "libavutil/audioconvert.h"
#include "avcodec.h" #include "avcodec.h"
#include "internal.h" #include "internal.h"
#include "put_bits.h" #include "put_bits.h"
@ -794,6 +796,9 @@ AVCodec ff_mp2_encoder = {
.supported_samplerates = (const int[]){ .supported_samplerates = (const int[]){
44100, 48000, 32000, 22050, 24000, 16000, 0 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)"), .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
.defaults = mp2_defaults, .defaults = mp2_defaults,
}; };