[x264-devel] patch for: alignment problem on sparc (maybe others 32bit archs, too)
Chris Fensch
cf-x264 at fens.ch
Fri Mar 6 11:08:44 CET 2009
Hello,
there is a pointer alignment problem in bs.h. s->p is no longer
guaranteed to be aligned to word bounderies. This causes a problem on
architectures that only support aligned word memory access, such as sparc
(I assume a few others might also have the same problem). In such a case
it is necessary to perform the word access as a sequence of bytes
accesses. I attached a patch that fixes this problem for sparc, but it
should be straight forward to modify the patch such that it also supports
other architectures. A final note, the patch only fixes alignment problems
on 32bit architectures. I made no effort to make it also support 64bit
architectures that have similar alignment constraints.
Cheers
Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x264-alignment_problem_in_bs_h_on_sparc.patch
Type: text/x-patch
Size: 2670 bytes
Desc:
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20090306/1651b7b9/attachment.bin>
More information about the x264-devel
mailing list