Simply use memcpy instead of AV_RN32/AV_WN32 combination.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 31 May 2009 10:16:28 +0000 (10:16 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 31 May 2009 10:16:28 +0000 (10:16 +0000)
Originally committed as revision 19046 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/lcldec.c

index 01b4b43..4a5a2eb 100644 (file)
@@ -89,7 +89,7 @@ static unsigned int mszh_decomp(unsigned char * srcptr, int srclen, unsigned cha
         if ((mask & (1 << (--maskbit))) == 0) {
             if (destptr + 4 > destptr_end)
                 break;
-            AV_WN32(destptr, AV_RN32(srcptr));
+            memcpy(destptr, srcptr, 4);
             srclen -= 4;
             destptr += 4;
             srcptr += 4;