[FFmpeg-devel] [PATCH] Fix potentially unaligned accesses in ff_copy_bits()
Michael Niedermayer
michaelni
Wed Jul 1 19:37:45 CEST 2009
On Wed, Jul 01, 2009 at 02:24:17PM +0100, Mans Rullgard wrote:
> A pointer should never be assigned a value which may have less than the
> required alignment of the target type. Compilers may assume pointer
> values have the required alignment, and emit normal load/store instructions.
>
> Unaligned pointers should use a character type or compiler-specific
> type modifiers.
> ---
> libavcodec/bitstream.c | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090701/b4081f7f/attachment.pgp>
More information about the ffmpeg-devel
mailing list