[MPlayer-users] Unable to play 'lagarith' files

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Oct 10 10:15:13 CEST 2009


On Sat, Oct 10, 2009 at 05:33:58PM +1100, andrew wrote:
> On Fri, Oct 09, 2009 at 10:50:18PM +0000, Mark Blain wrote:
> 
> > I tested successfully on a 32-bit Windows box with the manual-install 
> > Lagarith 32-bit DLL in my mplayer codecs folder.
> 
> My own failure was on a slackware box with a similar manual placement
> of the dll.
>  
> > Please post the messages you receive when trying to play the file.
> 
> The error message that precipitates the MPlayer crash is:
> 
> +---------
> Opening video decoder: [vfw] Win32/VfW video codecs
> ======= Win32 (VFW) VIDEO Codec init =======
> Loading codec DLL: 'lagarith.dll'
> Called unk_EncodePointer

You can try attached patch, or use the lagarith support patch for
FFmpeg.
-------------- next part --------------
Index: loader/win32.c
===================================================================
--- loader/win32.c	(revision 29748)
+++ loader/win32.c	(working copy)
@@ -4836,6 +4836,16 @@
     return 0;
 }
 
+static void *expEncodePointer(void *p)
+{
+    return p;
+}
+
+static void *expDecodePointer(void *p)
+{
+    return p;
+}
+
 struct exports
 {
     char name[64];
@@ -5011,6 +5021,8 @@
     {"LoadLibraryExA", -1, (void*)&LoadLibraryExA},
     FF(SetThreadIdealProcessor,-1)
     FF(SetProcessAffinityMask, -1)
+    FF(EncodePointer, -1)
+    FF(DecodePointer, -1)
     UNDEFF(FlsAlloc, -1)
     UNDEFF(FlsGetValue, -1)
     UNDEFF(FlsSetValue, -1)


More information about the MPlayer-users mailing list