[FFmpeg-cvslog] mpegaudioenc: list supported channel layouts.

Anton Khirnov git at videolan.org
Thu Aug 9 01:02:21 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Aug  1 07:33:56 2012 +0200| [94364b7d425bdb150f3b92fb94e7cc2a32ef325f] | committer: Anton Khirnov

mpegaudioenc: list supported channel layouts.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=94364b7d425bdb150f3b92fb94e7cc2a32ef325f
---

 libavcodec/mpegaudioenc.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/mpegaudioenc.c b/libavcodec/mpegaudioenc.c
index bc44aed..36777d4 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,
 };



More information about the ffmpeg-cvslog mailing list