From afb80e95a7b33dfd5b17788bfff4f5fbf5aca423 Mon Sep 17 00:00:00 2001 From: rtognimp Date: Sun, 24 Oct 2004 00:29:57 +0000 Subject: Windows media video advanced profile (wmva) support via binary codec git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13746 b3059339-0415-0410-9bf9-f77b7e298cf2 --- loader/module.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'loader') diff --git a/loader/module.c b/loader/module.c index 9e7bc1c3c5..5669d7b245 100644 --- a/loader/module.c +++ b/loader/module.c @@ -471,6 +471,20 @@ HMODULE WINAPI LoadLibraryExA(LPCSTR libname, HANDLE hfile, DWORD flags) } } + // 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; -- cgit v1.2.3