Fix cast of byte buffer to uint32 that was disregarding alignment
authorJeff Downs <heydowns@borg.com>
Fri, 12 Jun 2009 02:13:12 +0000 (02:13 +0000)
committerJeff Downs <heydowns@borg.com>
Fri, 12 Jun 2009 02:13:12 +0000 (02:13 +0000)
commitd468ff0fdfdd3ff8f54adea3dd1ef4b94cb8538d
tree8b09325ac0e514d31659eaf1ef76496ff4c5a9c8
parentbe43ae66517272dc2d9e7420df6931e622d9e4bc
Fix cast of byte buffer to uint32 that was disregarding alignment
requirements.
Now calculates crc byte at a time until aligned, then continues with uint32
optimized calculation.
This fixes crashes during mlp decoding on sparc (at least, maybe others).

Originally committed as revision 19160 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/crc.c