Mercurial > libavcodec.hg
diff lcldec.c @ 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 | 0dce4fe6e6f3 |
children | 1c3b57fbb512 |
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;