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

Michael Niedermayer michael at niedermayer.cc
Sun Dec 20 01:14:23 CET 2015


On Sat, Dec 19, 2015 at 09:35:19PM +0100, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  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 },

assuming the list is correct, the patch LGTM

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151220/573c4651/attachment.sig>


More information about the ffmpeg-devel mailing list