mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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 Originally committed as revision 18967 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6125d86597
commit
50352827f6
@ -129,7 +129,7 @@ static unsigned int mszh_decomp(unsigned char * srcptr, int srclen, unsigned cha
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user