mirror of
https://github.com/mpv-player/mpv
synced 2025-04-07 01:53:06 +00:00
10l, incorrect usage of le2me_*
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16150 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
503108e3fd
commit
c95fe61fd8
@ -374,7 +374,7 @@ int read_asf_header(demuxer_t *demuxer){
|
|||||||
}
|
}
|
||||||
// read length of chunk
|
// read length of chunk
|
||||||
stream_read(demuxer->stream, (char *)&data_len, sizeof(data_len));
|
stream_read(demuxer->stream, (char *)&data_len, sizeof(data_len));
|
||||||
le2me_64(data_len);
|
data_len = le2me_64(data_len);
|
||||||
demuxer->movi_start = stream_tell(demuxer->stream) + 26;
|
demuxer->movi_start = stream_tell(demuxer->stream) + 26;
|
||||||
demuxer->movi_end = start + data_len;
|
demuxer->movi_end = start + data_len;
|
||||||
mp_msg(MSGT_HEADER, MSGL_V, "Found movie at 0x%X - 0x%X\n",
|
mp_msg(MSGT_HEADER, MSGL_V, "Found movie at 0x%X - 0x%X\n",
|
||||||
|
@ -36,7 +36,7 @@ static uint32_t get_bits(da_priv_t* priv, stream_t* s, int bits) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
stream_read(s, (void *)&priv->dword, 4);
|
stream_read(s, (void *)&priv->dword, 4);
|
||||||
le2me_32(priv->dword);
|
priv->dword = le2me_32(priv->dword);
|
||||||
priv->pos -= 32;
|
priv->pos -= 32;
|
||||||
if (priv->pos) {
|
if (priv->pos) {
|
||||||
out <<= priv->pos;
|
out <<= priv->pos;
|
||||||
|
Loading…
Reference in New Issue
Block a user