Re: [FFmpeg-devel] [PATCH 001/289 v4] Add a new channel layout API

2022-01-17 Thread Marton Balint
On Mon, 17 Jan 2022, James Almer wrote: [...] -static const char *get_channel_name(int channel_id) +static const char *get_channel_name(enum AVChannel channel_id) { -if (channel_id < 0 || channel_id >= FF_ARRAY_ELEMS(channel_names)) +if ((unsigned) channel_id >= FF_ARRAY_ELEMS(channe

[FFmpeg-devel] [PATCH 001/289 v4] Add a new channel layout API

2022-01-17 Thread James Almer
From: Anton Khirnov The new API is more extensible and allows for custom layouts. More accurate information is exported, eg for decoders that do not set a channel layout, lavc will not make one up for them. Deprecate the old API working with just uint64_t bitmasks. Expanded and completed by Vit