<div dir="ltr"><div dir="ltr">Got what you are referring to here (

<a href="https://ffmpeg.org/documentation.html">https://ffmpeg.org/documentation.html</a>). I referred to an older branch's documentation. <div>However, it looks like even till <a href="https://ffmpeg.org/doxygen/5.0/structAVCodecContext.html">https://ffmpeg.org/doxygen/5.0/structAVCodecContext.html</a> it was the same. <br></div><div>From 5.1 (<a href="https://ffmpeg.org/doxygen/5.1/structAVCodecContext.html">https://ffmpeg.org/doxygen/5.1/structAVCodecContext.html</a>) onwards there seems to be some change in the <span style="background-color:rgb(249,250,252);color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:21px;font-weight:700">AVCodecContext</span> data structure.</div><div><span style="background-color:rgb(249,250,252);color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:21px;font-weight:700">AVChannelLayout Struct is introduced as </span>(<a href="https://ffmpeg.org/doxygen/5.1/structAVChannelLayout.html">https://ffmpeg.org/doxygen/5.1/structAVChannelLayout.html</a>) but looks like there is still an option to mask the order.</div><div><table class="gmail-memberdecls" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:22px;font-family:Roboto,sans-serif;border-spacing:0px;padding:0px;color:rgb(0,0,0)"><tbody><tr class="gmail-memitem:a233400048168e02e93484196a48735e8"><td class="gmail-memItemLeft" style="background-color:rgb(249,250,252);border:none;margin:4px;padding:1px 0px 0px 8px;white-space:nowrap">union {</td></tr><tr class="gmail-memitem:a88a7f3f8ac39481d6f8e369abe7c1135"><td class="gmail-memItemLeft" style="background-color:rgb(249,250,252);border:none;margin:4px;padding:1px 0px 0px 8px;white-space:nowrap">   uint64_t   <a class="el" href="https://ffmpeg.org/doxygen/5.1/structAVChannelLayout.html#a78b6087054bf8c308355384d050b5d51" style="color:rgb(61,87,140);font-weight:bold">mask</a></td></tr><tr class="gmail-memdesc:a88a7f3f8ac39481d6f8e369abe7c1135"><td class="gmail-mdescLeft" style="background-color:rgb(249,250,252);border:none;margin:4px;padding:0px 8px 4px;color:rgb(85,85,85)"> </td><td class="gmail-mdescRight" style="background-color:rgb(249,250,252);border:none;margin:4px;padding:0px 8px 4px;color:rgb(85,85,85)">This member must be used for AV_CHANNEL_ORDER_NATIVE</td></tr></tbody></table>Anyways, It's not going to solve my problem. So I will go with my simple mapping instead of keeping doubt in mind.</div><div>Thanks again Nicolas!  </div></div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><br>
</blockquote></div></div>