Mercurial > libavcodec.hg
changeset 9720:d6a35d7be925 libavcodec
Use AV_R/WN32 instead of direct integer copying.
Fixes decoding on at least Sparc/Solaris where unaligned accesses cause
crashes.
ML thread: http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/91414
author | heydowns |
---|---|
date | Wed, 27 May 2009 18:59:24 +0000 |
parents | e7032c44d4a7 |
children | 5d0f71ba8648 |
files | lcldec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lcldec.c Wed May 27 06:43:51 2009 +0000 +++ b/lcldec.c Wed May 27 18:59:24 2009 +0000 @@ -129,7 +129,7 @@ if ((mask & (1 << (--maskbit))) == 0) { if (destptr + 4 > destptr_end) break; - *(int*)destptr = *(int*)srcptr; + AV_WN32(destptr, AV_RN32(srcptr)); srclen -= 4; destptr += 4; srcptr += 4;