[Mplayer-cvslog] CVS: main/loader module.c,1.23,1.24

Roberto Togni CVS syncmail at mplayerhq.hu
Sun Oct 24 02:29:59 CEST 2004


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/loader
In directory mail:/var2/tmp/cvs-serv25974/loader

Modified Files:
	module.c 
Log Message:
Windows media video advanced profile (wmva) support via binary codec


Index: module.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/module.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- module.c	12 Oct 2004 16:33:00 -0000	1.23
+++ module.c	24 Oct 2004 00:29:57 -0000	1.24
@@ -471,6 +471,20 @@
           }
         }
 
+        // Windows Media Video 9 Advanced
+        if (strstr(libname,"wmvadvd.dll") && wm)
+        {
+          // The codec calls IsRectEmpty with coords 0,0,0,0 => result is 0
+          // but it really wants the rectangle to be not empty
+          if (PE_FindExportedFunction(wm, "CreateInstance", TRUE)==(void*)0x08c4b812) {
+            // Dll version is 10.0.0.3645
+            *((char*)0x08c48b0f)=0xeb; // Jump always, ignoring IsRectEmpty result
+          } else {
+            fprintf(stderr, "Unsupported WMVA version\n");
+            return 0;
+          }
+        }
+
 	if (strstr(libname,"QuickTime.qts") && wm)
 	{
 	    void** ptr;




More information about the MPlayer-cvslog mailing list