[Mplayer-cvslog] CVS: main/loader module.c,1.21,1.22

Alex Beregszaszi syncmail at mplayerhq.hu
Tue Oct 12 18:30:45 CEST 2004


CVS change done by Alex Beregszaszi

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

Modified Files:
	module.c 
Log Message:
runtime patching vp31vfw.dll, so non-patched dlls can be used aswell. note: this does not breaks if the dll is already patched

Index: module.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/module.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- module.c	28 Aug 2004 20:22:38 -0000	1.21
+++ module.c	12 Oct 2004 16:30:40 -0000	1.22
@@ -422,6 +422,17 @@
 	if (!wm)
 	    printf("Win32 LoadLibrary failed to load: %s\n", checked);
 
+	if (strstr(libname,"vp31vfw.dll") && wm)
+	{
+	    int i;
+
+	  // sse hack moved from patch dll into runtime patching
+          if (PE_FindExportedFunction(wm, "DriverProc", TRUE)==(void*)0x10001000) {
+	    fprintf(stderr, "VP3 DLL found\n");
+	    for (i=0;i<18;i++) ((char*)0x10004bd6)[i]=0x90;
+	  }
+	}
+
         // remove a few divs in the VP codecs that make trouble
         if (strstr(libname,"vp5vfw.dll") && wm)
         {




More information about the MPlayer-cvslog mailing list