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:
reimar 2005-07-29 15:52:06 +00:00
parent 503108e3fd
commit c95fe61fd8
2 changed files with 2 additions and 2 deletions

View File

@ -374,7 +374,7 @@ int read_asf_header(demuxer_t *demuxer){
}
// read length of chunk
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_end = start + data_len;
mp_msg(MSGT_HEADER, MSGL_V, "Found movie at 0x%X - 0x%X\n",

View File

@ -36,7 +36,7 @@ static uint32_t get_bits(da_priv_t* priv, stream_t* s, int bits) {
}
else {
stream_read(s, (void *)&priv->dword, 4);
le2me_32(priv->dword);
priv->dword = le2me_32(priv->dword);
priv->pos -= 32;
if (priv->pos) {
out <<= priv->pos;