mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
aviheader.c: Remove obfuscating use of le2me_32.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31681 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d12c624ea8
commit
01a95808f1
@ -35,13 +35,10 @@ static MainAVIHeader avih;
|
||||
|
||||
static int odml_get_vstream_id(int id, unsigned char res[])
|
||||
{
|
||||
unsigned char *p = (unsigned char *)&id;
|
||||
id = le2me_32(id);
|
||||
|
||||
if (p[2] == 'd') {
|
||||
if ((char)(id >> 16) == 'd') {
|
||||
if (res) {
|
||||
res[0] = p[0];
|
||||
res[1] = p[1];
|
||||
res[0] = id;
|
||||
res[1] = id >> 8;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user