Fix potentially unaligned accesses in ff_copy_bits()
authorMåns Rullgård <mans@mansr.com>
Wed, 1 Jul 2009 17:48:22 +0000 (17:48 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 1 Jul 2009 17:48:22 +0000 (17:48 +0000)
commitec62d942ea73d98ee2760746884779d7e0ccb6d3
tree70cf10800671c65573015da7518ecef9df8a7a6d
parentf7f1eb6cc9ce3e22dc48d20191eedc10008d878f
Fix potentially unaligned accesses in ff_copy_bits()

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.

Originally committed as revision 19318 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/bitstream.c