From 423dd1fae5a3658ad9e6200f7a5028ac4aa31165 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Sun, 6 Oct 2002 19:55:18 +0000 Subject: The following was crashing on SPARC with a BUS error: http://dod.hpi.net/samples/marymary-shackles.mov CVS patchset: 2797 CVS date: 2002/10/06 19:55:18 --- src/libxinevdec/svq1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/libxinevdec/svq1.c b/src/libxinevdec/svq1.c index 90f9c9bbb..3bdb8baa3 100644 --- a/src/libxinevdec/svq1.c +++ b/src/libxinevdec/svq1.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: svq1.c,v 1.9 2002/09/05 22:19:03 mroi Exp $ + * $Id: svq1.c,v 1.10 2002/10/06 19:55:18 jkeil Exp $ */ #include @@ -574,7 +574,7 @@ static uint32_t get_bits (bit_buffer_t *bitbuf, int count) { uint32_t result; /* load 32 bits of data (byte-aligned) */ - result = be2me_32 (*((uint32_t *) &bitbuf->buffer[bitbuf->bitpos >> 3])); + result = BE_32 (&bitbuf->buffer[bitbuf->bitpos >> 3]); /* compensate for sub-byte offset */ result <<= (bitbuf->bitpos & 0x7); @@ -593,7 +593,7 @@ static uint32_t get_bit_cache(bit_buffer_t *bitbuf) { uint32_t result; /* load 32 bits of data (byte-aligned) */ - result = be2me_32 (*((uint32_t *) &bitbuf->buffer[bitbuf->bitpos >> 3])); + result = BE_32 (&bitbuf->buffer[bitbuf->bitpos >> 3]); /* compensate for sub-byte offset */ result <<= (bitbuf->bitpos & 0x7); -- cgit v1.2.3