]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commit
Fix cast of byte buffer to uint32 that was disregarding alignment
authorheydowns <heydowns@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 12 Jun 2009 02:13:12 +0000 (02:13 +0000)
committerheydowns <heydowns@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 12 Jun 2009 02:13:12 +0000 (02:13 +0000)
commit455863d517f2f01e4feb7b815682d962bc184539
tree7769b33d54daf54b1a54582675aaacde0a5b1411
parent6596fb4b228af4ba66cd3b35066ebc61acf74f34
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).

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19160 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
libavutil/crc.c