[MPlayer-dev-eng] how to add lookup / add functions in loader/win32.c ?

compn tempn at mi.rr.com
Sun May 17 00:27:16 CEST 2015


trying to get G729DecoderDmo.dll to work in linux.
http://samples.ffmpeg.org/drivers32/new/G729DecoderDMO.dll
https://trac.ffmpeg.org/attachment/ticket/4553/g729stereo.wav
(use ffmpeg -i g729stereo.wav -acodec copy out.wav to get proper wav header)

a at lappy:~/Desktop/trunk$ ./mplayer out.wav -v -v -v
MPlayer SVN-r37401-4.7 (C) 2000-2015 MPlayer Team

...

Opening audio decoder: [dmo] Win32/DMO decoders
Called unk__initterm_e
Called unk__initterm
Called unk_memset
DisableThreadLibraryCalls(0x60e50000) => 0
Called unk_ATL90.DLL:15


MPlayer interrupted by signal 11 in module: init_audio_codec

i added a struct for msvcr90 with initterm and memset and some others....
now i get this:

Opening audio decoder: [dmo] Win32/DMO decoders
External func ATL90.DLL:32
External func ATL90.DLL:61
External func ATL90.DLL:49
External func ATL90.DLL:15
External func ATL90.DLL:64
External func ATL90.DLL:23
Called unk_ATL90.DLL:15

MPlayer interrupted by signal 11 in module: init_audio_codec


ok , got creative. copied over winxp version of ATL90.DLL
ffmpeg.org/~compn/ATL90.DLL
then i enabled #define LOADLIB_TRY_NATIVE in win32.c

now the codec loads AND works AND no crash, and i get this in output:

External dll loaded (offset: 0x78e20000, func: 0x78e25d87)
External func ATL90.DLL:61
External dll loaded (offset: 0x78e20000, func: 0x78e28712)
External func ATL90.DLL:49
External dll loaded (offset: 0x78e20000, func: 0x78e2a430)
External func ATL90.DLL:15
External dll loaded (offset: 0x78e20000, func: 0x78e2a974)
External func ATL90.DLL:64
External dll loaded (offset: 0x78e20000, func: 0x78e26032)
External func ATL90.DLL:23
External dll loaded (offset: 0x78e20000, func: 0x78e2873e)





any loader devs still around want to clean up and finish this? :)

maybe write a howto add codecs this time! :P

not terribly important, just bored. 
hey i was able to copy paste my way around the loader, yay.

patch to make it work on linux with latest SVN mplayer attached.

-compn
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: derppatch.txt
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20150516/29f9950c/attachment.txt>


More information about the MPlayer-dev-eng mailing list