On Wed, May 18, 2011 at 11:52 AM, pavan kumar <span dir="ltr"><<a href="mailto:kumar.pavan463@gmail.com" target="_blank">kumar.pavan463@gmail.com</a>></span> wrote:<blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
what actually mean the 4 byte alignment in it,<br></blockquote><a href="http://en.wikipedia.org/wiki/Alignment" target="_blank">http://en.wikipedia.org/wiki/Alignment</a><br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
how to verify the whether it is 4byte alignment or not?<div>and if the data is not in that 4 byte alignment then how can i will align to that 4 byte alignment</div></blockquote>
You should allocate buffer avpkt->data (if you really need this!)<br>with function that cares about specified alignment or do this yourself (request greater buffer<br>and move start pointer to alignment position and correctly free it).<br>
<br>av_malloc will do this with alignment needed for current platform<br>(SSE instructions needs 16-bytes alignment for example, thus 4-bytes is not enough for many cases).<br><br><span style="color:rgb(192, 192, 192)">-----------------------------------------------</span><br style="color:rgb(192, 192, 192)">
<span style="color:rgb(192, 192, 192)">Kirill Gavrilov,</span><br style="color:rgb(192, 192, 192)">
<span style="color:rgb(192, 192, 192)">Software designer.</span><br><a href="mailto:kirill@sview.ru" target="_blank"></a><br>