mirror of
https://github.com/mpv-player/mpv
synced 2025-03-07 14:47:53 +00:00
Ugly hack to make xanlib.dll work.
See also http://samples.mplayerhq.hu/game-formats/wc4-xan/ git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23981 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1e01d6ef49
commit
49987047a3
@ -2024,6 +2024,14 @@ videocodec fftxd
|
||||
dll txd
|
||||
out BGR32
|
||||
|
||||
videocodec xan
|
||||
info "XAN Video"
|
||||
status working
|
||||
fourcc Xxan
|
||||
driver vfw
|
||||
dll "xanlib.dll"
|
||||
out BGR24,BGR15,BGR8 query,flip
|
||||
|
||||
videocodec ffwc3
|
||||
info "FFmpeg XAN wc3"
|
||||
status buggy
|
||||
|
@ -546,7 +546,8 @@ HMODULE PE_LoadImage( int handle, LPCSTR filename, WORD *version )
|
||||
* to work (until we support shared sections properly).
|
||||
*/
|
||||
|
||||
if ( nt->OptionalHeader.ImageBase & 0x80000000 )
|
||||
if ( nt->OptionalHeader.ImageBase & 0x80000000 &&
|
||||
!strstr(filename, "xanlib.dll"))
|
||||
{
|
||||
HMODULE sharedMod = (HMODULE)nt->OptionalHeader.ImageBase;
|
||||
IMAGE_NT_HEADERS *sharedNt = (PIMAGE_NT_HEADERS)
|
||||
|
Loading…
Reference in New Issue
Block a user