[MPlayer-cvslog] CVS: main/libmpdemux demux_mkv.c,1.32,1.33

Moritz Bunkus CVS syncmail at mplayerhq.hu
Thu Jan 13 22:04:36 CET 2005


CVS change done by Moritz Bunkus CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv4550

Modified Files:
	demux_mkv.c 
Log Message:
Do not access word-sized elements on potentially unaligned memory addresses. RISC processors usually do not like that.

Index: demux_mkv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- demux_mkv.c	11 Jan 2005 18:32:49 -0000	1.32
+++ demux_mkv.c	13 Jan 2005 21:04:34 -0000	1.33
@@ -2900,7 +2900,7 @@
   num = ebml_read_vlen_uint (block, &tmp);
   block += tmp;
   /* time (relative to cluster time) */
-  time = be2me_16 (* (int16_t *) block);
+  time = block[0] << 8 | block[1];
   block += 2;
   length -= tmp + 2;
   old_length = length;




More information about the MPlayer-cvslog mailing list