[FFmpeg-cvslog] avcodec/s302menc: set supported channel layouts by codec

Paul B Mahol git at videolan.org
Sun Dec 20 16:11:53 CET 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Dec 19 21:34:27 2015 +0100| [577f05735511066eca48b9a5fff6bf9b75cd65e6] | committer: Paul B Mahol

avcodec/s302menc: set supported channel layouts by codec

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

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

diff --git a/libavcodec/s302menc.c b/libavcodec/s302menc.c
index fbaa845..3706eba 100644
--- a/libavcodec/s302menc.c
+++ b/libavcodec/s302menc.c
@@ -175,4 +175,9 @@ AVCodec ff_s302m_encoder = {
                                                             AV_SAMPLE_FMT_NONE },
     .capabilities          = AV_CODEC_CAP_VARIABLE_FRAME_SIZE | AV_CODEC_CAP_EXPERIMENTAL,
     .supported_samplerates = (const int[]) { 48000, 0 },
+    .channel_layouts       = (const uint64_t[]) { AV_CH_LAYOUT_STEREO,
+                                                  AV_CH_LAYOUT_QUAD,
+                                                  AV_CH_LAYOUT_5POINT1_BACK,
+                                                  AV_CH_LAYOUT_5POINT1_BACK | AV_CH_LAYOUT_STEREO_DOWNMIX,
+                                                  0 },
 };



More information about the ffmpeg-cvslog mailing list