<div>Greetings. Found strange thing in this code:</div><div><div> <div><div>static inline int decode_vui_parameters(H264Context *h, SPS *sps)</div><div>{</div><div>    int aspect_ratio_info_present_flag;</div><div>    unsigned int aspect_ratio_idc;</div><div> </div><div>    aspect_ratio_info_present_flag = get_bits1(&h->gb);</div><div> </div><div>    if (aspect_ratio_info_present_flag) {</div><div>        aspect_ratio_idc = get_bits(&h->gb, 8);</div><div>        if (aspect_ratio_idc == EXTENDED_SAR) {</div><div>            sps->sar.num = get_bits(&h->gb, 16);</div><div>            sps->sar.den = get_bits(&h->gb, 16);<br />....<br /> </div><div>"sps->sar.num" and "sps->sar.den" are 16-bit numerical values. This means they have endianness: little or big. As we can see, they are not swapping. So, the values "sps->sar.num" and "sps->sar.den" should read different on little and big endian systems..</div></div>Could you please explain if I'm wrong?<br /> </div><div>-- </div><div>С уважением,</div><div>Слободенюк Александр Игоревич</div><div> </div><div>контактный телефон: <span>+7-925-050-64-62</span></div></div>