avcodec/s302menc: set supported channel layouts by codec
authorPaul B Mahol <onemda@gmail.com>
Sat, 19 Dec 2015 20:34:27 +0000 (21:34 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 20 Dec 2015 15:05:37 +0000 (16:05 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/s302menc.c

index fbaa845..3706eba 100644 (file)
@@ -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 },
 };