Mercurial > mplayer.hg
changeset 31615:29f48c6e3056
Remove obfuscating use of le2me_32.
author | reimar |
---|---|
date | Sat, 10 Jul 2010 22:33:49 +0000 |
parents | b40d593a463f |
children | 3da109629fca |
files | libmpdemux/aviheader.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/aviheader.c Sat Jul 10 22:24:31 2010 +0000 +++ b/libmpdemux/aviheader.c Sat Jul 10 22:33:49 2010 +0000 @@ -36,13 +36,10 @@ 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; }