[Libav-user] Problem facing while decoding

Kirill Gavrilov gavr.mail at gmail.com
Wed May 18 12:06:22 CEST 2011

On Wed, May 18, 2011 at 11:52 AM, pavan kumar <kumar.pavan463 at gmail.com>wrote:
> what actually mean the 4 byte alignment in it,

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.
<kirill at sview.ru>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110518/cc32aae8/attachment.html>

More information about the Libav-user mailing list