[MPlayer-cvslog] r31681 - trunk/libmpdemux/aviheader.c

reimar subversion at mplayerhq.hu
Sun Jul 11 00:33:49 CEST 2010


Author: reimar
Date: Sun Jul 11 00:33:49 2010
New Revision: 31681

Log:
Remove obfuscating use of le2me_32.

Modified:
   trunk/libmpdemux/aviheader.c

Modified: trunk/libmpdemux/aviheader.c
==============================================================================
--- trunk/libmpdemux/aviheader.c	Sun Jul 11 00:24:31 2010	(r31680)
+++ trunk/libmpdemux/aviheader.c	Sun Jul 11 00:33:49 2010	(r31681)
@@ -36,13 +36,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;
     }


More information about the MPlayer-cvslog mailing list