diff options
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 |