Mercurial > mplayer.hg
changeset 14489:ca9e98e6c10b
Do not access word-sized elements on potentially unaligned memory addresses. RISC processors usually do not like that.
author | mosu |
---|---|
date | Thu, 13 Jan 2005 21:04:34 +0000 |
parents | 7cb1494b2f9f |
children | c6ac7e795262 |
files | libmpdemux/demux_mkv.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c Thu Jan 13 20:13:00 2005 +0000 +++ b/libmpdemux/demux_mkv.c Thu Jan 13 21:04:34 2005 +0000 @@ -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;