diff options
author | Robin KAY <komadori@users.sourceforge.net> | 2002-10-06 03:48:13 +0000 |
---|---|---|
committer | Robin KAY <komadori@users.sourceforge.net> | 2002-10-06 03:48:13 +0000 |
commit | 24ed40652239b8e3841803e473b31736b4d04bca (patch) | |
tree | 32858182f1bbd66458e4467608cdad8efe6a9b09 /src/demuxers/demux_qt.c | |
parent | 08d0890139902ec1a227d2bd429585534fa6ff24 (diff) | |
download | xine-lib-24ed40652239b8e3841803e473b31736b4d04bca.tar.gz xine-lib-24ed40652239b8e3841803e473b31736b4d04bca.tar.bz2 |
Workaround for code generation bug in gcc on SPARC. Mike's endian macros now moved to bswap.h
CVS patchset: 2794
CVS date: 2002/10/06 03:48:13
Diffstat (limited to 'src/demuxers/demux_qt.c')
-rw-r--r-- | src/demuxers/demux_qt.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c index b557c9959..edb4f8b36 100644 --- a/src/demuxers/demux_qt.c +++ b/src/demuxers/demux_qt.c @@ -30,7 +30,7 @@ * build_frame_table * free_qt_info * - * $Id: demux_qt.c,v 1.93 2002/10/06 02:27:53 tmmm Exp $ + * $Id: demux_qt.c,v 1.94 2002/10/06 03:48:13 komadori Exp $ * */ @@ -57,9 +57,6 @@ typedef unsigned int qt_atom; -#define BE_16(x) (be2me_16(*(uint16_t *)(x))) -#define BE_32(x) (be2me_32(*(uint32_t *)(x))) - #define QT_ATOM( ch0, ch1, ch2, ch3 ) \ ( (long)(unsigned char)(ch3) | ( (long)(unsigned char)(ch2) << 8 ) | \ ( (long)(unsigned char)(ch1) << 16 ) | ( (long)(unsigned char)(ch0) << 24 ) ) @@ -572,7 +569,7 @@ static qt_error parse_trak_atom(qt_sample_table *sample_table, BE_16(&trak_atom[i + 0x2E]); } sample_table->media_description.video.codec_format = - *(uint32_t *)&trak_atom[i + 0x10]; + ME_32(&trak_atom[i + 0x10]); /* figure out the palette situation */ color_depth = trak_atom[i + 0x5F]; |