mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
Do not access word-sized elements on potentially unaligned memory addresses. RISC processors usually do not like that.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14490 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8846359155
commit
60e7dabb30
@ -2900,7 +2900,7 @@ handle_block (demuxer_t *demuxer, uint8_t *block, uint64_t length,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user