diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-23 23:15:25 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-23 23:15:25 +0000 |
commit | f40b7e91b83395ad27184af90280e378f4e7840a (patch) | |
tree | 2c6890d4757beee3e7afa4e93ae5124e2d47af55 /libmpcodecs/ad_msadpcm.c | |
parent | cf9fcd648f3a40787dad353db3a4f237a1d68cd6 (diff) | |
download | mpv-f40b7e91b83395ad27184af90280e378f4e7840a.tar.bz2 mpv-f40b7e91b83395ad27184af90280e378f4e7840a.tar.xz |
fixed unaligned access (bus error on sparc)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7889 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/ad_msadpcm.c')
-rw-r--r-- | libmpcodecs/ad_msadpcm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmpcodecs/ad_msadpcm.c b/libmpcodecs/ad_msadpcm.c index 5bfa0e46fc..e500edd8f0 100644 --- a/libmpcodecs/ad_msadpcm.c +++ b/libmpcodecs/ad_msadpcm.c @@ -44,8 +44,9 @@ static int ms_adapt_coeff2[] = #define MS_ADPCM_PREAMBLE_SIZE 6 -#define LE_16(x) (le2me_16(*(unsigned short *)(x))) -#define LE_32(x) (le2me_32(*(unsigned int *)(x))) +#define LE_16(x) (le2me_16((x)[1]+(256*(x)[0]))) +//#define LE_16(x) (le2me_16(*(unsigned short *)(x))) +//#define LE_32(x) (le2me_32(*(unsigned int *)(x))) // useful macros // clamp a number between 0 and 88 |