--- BUG DESCRIPTION --- There is a division by zero problem (two, actually) in main/libmpdemux/demux_audio.c. When playing MP3 or FLAC, it attempts to divide by sh_audio->i_bps which is unset. This doesn't happen when using a container, so presumably bps is defined by the container. For some reason, this doesn't cause FPE on IEEE 754-conformant processors (e.g. x86, unlike DEC Alpha). --- BUG DESCRIPTION --- --- RESOLUTION --- A patch is attached. The patch resolves the issue quite well by adding a switch-case statement to the affected lines. It is, however, evaluated every time that the audio buffer is filled, so more efficient solutions may be preferable. Also, I suggest that the code be checked for arithmetic traps. (if there's a test suite, I'd be happy to do it) --- RESOLUTION --- -- |Andrew A. Gill |I posted to Silent-Tristero and| |<superluser@frontiernet.net> |all I got was this stupid sig! | |alt.tv.simpsons CBG-FAQ author | | | (Report all obscene mail to Le Maitre Pots)| |Yet: <http://www.needsfoodbadly.com> Temporary sig: -- Yay advusers!