On Wed, May 18, 2011 at 11:52 AM, pavan kumar <[email protected]>wrote: > > what actually mean the 4 byte alignment in it, > http://en.wikipedia.org/wiki/Alignment
how to verify the whether it is 4byte alignment or not? > and if the data is not in that 4 byte alignment then how can i will align > to that 4 byte alignment > You should allocate buffer avpkt->data (if you really need this!) with function that cares about specified alignment or do this yourself (request greater buffer and move start pointer to alignment position and correctly free it). av_malloc will do this with alignment needed for current platform (SSE instructions needs 16-bytes alignment for example, thus 4-bytes is not enough for many cases). ----------------------------------------------- Kirill Gavrilov, Software designer. <[email protected]>
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
