[Ffmpeg-devel] [PATCH] increase picture buffer alignment to 16-byte on x86

Alexander Strange astrange
Thu Jan 11 04:24:16 CET 2007


I was doing some sse2 code with an ffmpeg buffer and was surprised to  
find it crashing.
This turned out to be because avcodec_default_get_buffer was aligning  
the U/V buffers to 8-byte instead of 16-byte alignment. As 16-byte  
alignment works fine on PPC, the attached patch changes it to match  
on x86.

Although if there's a reason for this, I can certainly just go to  
using movdqu.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-stride16.patch
Type: application/octet-stream
Size: 450 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070110/2ff5fab3/attachment.obj>



More information about the ffmpeg-devel mailing list