AVCodecParameters.channel_layout

Audio only. The channel layout bitmask. May be 0 if the channel layout is unknown or unspecified, otherwise the number of bits set must be equal to the channels field.

struct AVCodecParameters
ulong channel_layout;

Meta