[Tremor] ensure reasonable alignment for shorts in ivorbisfile_example.c
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Nov 9 21:57:05 PST 2010
hi folks--
on architectures which require short (16-bit) integers to be aligned,
ivorbisfile_example.c has the potential to cause misaligned data access
due to pcmout being allocated as a buffer of chars, but accessed as a
buffer of shorts.
The attached patch fixes the problem for me. Feel free to include it in
svn.
Regards,
--dkg
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix_pcm_data_alignment_to_shorts
Url: http://lists.xiph.org/pipermail/tremor/attachments/20101110/ca7baf5b/attachment.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
Url : http://lists.xiph.org/pipermail/tremor/attachments/20101110/ca7baf5b/attachment.pgp
More information about the Tremor
mailing list