# HG changeset patch # User reimar # Date 1185939038 0 # Node ID 4e22889a6e357fbc6e35649275492c86d3d4260e # Parent 0525bd0aed184b321239ba254b0e1cab0649ae00 Ugly hack to make xanlib.dll work. See also http://samples.mplayerhq.hu/game-formats/wc4-xan/ diff -r 0525bd0aed18 -r 4e22889a6e35 etc/codecs.conf --- a/etc/codecs.conf Wed Aug 01 01:15:26 2007 +0000 +++ b/etc/codecs.conf Wed Aug 01 03:30:38 2007 +0000 @@ -2024,6 +2024,14 @@ 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 diff -r 0525bd0aed18 -r 4e22889a6e35 loader/pe_image.c --- a/loader/pe_image.c Wed Aug 01 01:15:26 2007 +0000 +++ b/loader/pe_image.c Wed Aug 01 03:30:38 2007 +0000 @@ -546,7 +546,8 @@ * 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)