[MPlayer-users] msadpcm crash with Solaris/SPARC

Arpi arpi at thot.banki.hu
Wed Oct 23 14:01:02 CEST 2002


Hi,

> Program received signal SIGBUS, Bus error.
> 0x52ed0 in ms_adpcm_decode_block (output=0x3c8be8, input=0x3c89e0 "\004\020", 
>     channels=1, block_size=512) at ad_msadpcm.c:131
> 131	  idelta[0] = LE_16(&input[stream_ptr]);
> (gdb) bt
> #0  0x52ed0 in ms_adpcm_decode_block (output=0x3c8be8, 
>     input=0x3c89e0 "\004\020", channels=1, block_size=512) at ad_msadpcm.c:131

it tries to read int16 from odd offset, probably causing unaligned memroy
access. i don't know that arch but ask Jurgen Keil, he fixed similar things
in the past.

also, you can try to change 
#define LE_16(x) (le2me_16(*(unsigned short *)(x)))
to:
#define LE_16(x) (le2me_16(x[0]+(256*x[1])))
or maybe:
#define LE_16(x) (le2me_16(x[1]+(256*x[0])))


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu




More information about the MPlayer-users mailing list