[MPlayer-dev-eng] [PATCH] Re: Frapsvid.dll

Gianluigi Tiesi mplayer at netfarm.it
Sat May 14 06:52:56 CEST 2005


Faking the module name to be Premiere, the decoder does the init,
however mplayer says a lot of errors in decoding frames.
The module name check is made against:
(first is uppercased then using strstr)

PREMIERE
BINK
VEDITOR

if the module is not in these the driver will crash without the init


a simple patch is attached
Bye

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
Index: loader/win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.98
diff -u -r1.98 win32.c
--- loader/win32.c	15 Apr 2005 20:17:12 -0000	1.98
+++ loader/win32.c	14 May 2005 04:48:36 -0000
@@ -2285,7 +2285,8 @@
     if (module == 0 && len >= 12)
     {
 	/* return caller program name */
-	strcpy(s, "aviplay.dll");
+	//strcpy(s, "aviplay.dll");
+        strcat(s, "premiere");
 	result=1;
     }
     else if(s==0)


More information about the MPlayer-dev-eng mailing list