Mercurial > mplayer.hg
changeset 10067:f9eac474eb74
this is a important patch for hpux 11.00, because it avoid the
SIGBUS Signal Error if playing video direct from DVD-Rom.
Patch by Martin Gansser <mgansser@ngi.de>.
author | diego |
---|---|
date | Mon, 05 May 2003 01:22:45 +0000 |
parents | c55cf2231b5a |
children | b3ce60d238c4 |
files | liba52/bitstream.h libmpdemux/open.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/liba52/bitstream.h Mon May 05 00:06:58 2003 +0000 +++ b/liba52/bitstream.h Mon May 05 01:22:45 2003 +0000 @@ -21,10 +21,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifdef __sparc__ +#if defined(__sparc__) || defined(hpux) /* * the alt bitstream reader performs unaligned memory accesses; that doesn't work - * on sparc. For now, disable ALT_BITSTREAM_READER. + * on sparc/hpux. For now, disable ALT_BITSTREAM_READER. */ #undef ALT_BITSTREAM_READER #else
--- a/libmpdemux/open.c Mon May 05 00:06:58 2003 +0000 +++ b/libmpdemux/open.c Mon May 05 01:22:45 2003 +0000 @@ -743,8 +743,8 @@ if(d->angle_seek){ int i,skip=0; -#if defined(__GNUC__) && defined(__sparc__) - // workaround for a bug in the sparc version of gcc 2.95.X ... 3.2, +#if defined(__GNUC__) && ( defined(__sparc__) || defined(hpux) ) + // workaround for a bug in the sparc/hpux version of gcc 2.95.X ... 3.2, // it generates incorrect code for unaligned access to a packed // structure member, resulting in an mplayer crash with a SIGBUS // signal.