[Mplayer-dev-eng] Re: Experimental patch for optimized "wine" build for mplayer

Juergen Keil jk at tools.de
Wed Jul 4 14:50:08 CEST 2001


Hi,

A few day ago, I wrote:

> Are there perhaps some .avi / .asf files that work now, that did not work
> without the patch?

Now I've found the first avi file (http://static.hugi.is/movies/405.avi ~8MB)
that works with the optimized and fixed wine loader,  and that crashes with the
unpatched mplayer-cvs of today:


                   ________________________________________


With today's cvs version, I get

% ./mplayer -ao null /tmp/405.avi


MPlayer 0.17cvs-010704-12:44(C) 2000-2001 Arpad Gereoffy <arpi at thot.banki.hu>

Reading /home/jk/.mplayer/codecs.conf: 15 audio & 28 video codecs
Font /home/jk/.mplayer/font/font.desc loaded successfully! (140 chars)
Detected AVI file format!
==> Found video stream: 0
==> Found audio stream: 1
VIDEO:  [DIV3]  356x240  24bpp  30.00 fps  335.5 kbps (41.0 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:356x240  fps:30.00  ftime:=0.0333
Found audio codec: [divx] drv:4 (DivX audio (WMA))
Loading DLL: /usr/lib/win32/divxa32.acm  OK
Segmentation fault

% adb mplayer core
core file = core -- program ``mplayer'' on platform 'i86pc'
SIGSEGV: Segmentation Fault
$c
acmDriverOpen(0x8046d60,0x81dd218,0x0,0x8087a27,0x0,0x66) + b7
acmStreamOpen(0x81dde9c,0x0,0x81dd1f0,0x81dde88,0x0,0x0) + 1fb
init_acm_audio_codec(0x2,0x804709c,0x80470a8) + a2
_start() + 57
$
no process
SIGSEGV: Segmentation Fault
gs      0x10f                           ecx     0x0
fs      0x37                            eax     0x81e0aa0  _END_+0x4474
es      0x1f                            trapno  0xe
ds      0x1f                            err     0x7
edi     0x0                             eip     0x80875cf  acmDriverOpen+0xb7
esi     0x81dd218  _END_+0xbec          cs      0x17
ebp     0x8046d18                       efl     0x10246
kesp    0xef8bbfe4                      esp     0x8046cc4
ebx     0x80872d3  DrvOpen+0xc3         ss      0x1f
edx     0x8246a68

acmDriverOpen+0xb7:             movl   %eax,0x4(%ebx) [-,4]
<ebx/X

data address not found
<ebx=X
                80872d3		<-- That's some return address pointing into
                		    mplayer's .text area (DrvOpen+0xc3).
                		    Of cause we can't write there :-)
^D


With my wine/loader patch installed, this avi file displays without a problem:

...
VIDEO:  [DIV3]  356x240  24bpp  30.00 fps  335.5 kbps (41.0 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:356x240  fps:30.00  ftime:=0.0333
Found audio codec: [divx] drv:4 (DivX audio (WMA))
Loading DLL: /usr/lib/win32/divxa32.acm  OK
dec_audio: Allocating 16384 + 65536 = 81920 bytes for output buffer
AUDIO: srate=44100  chans=2  bps=2  sfmt=0x10  ratio: 8010->176400
Found video codec: [divxds] drv:4 (DivX ;-) (MS MPEG-4 v3))
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 depth: 32 ("elise:0" => remote display)
Loading DLL: /usr/lib/win32/divx_c32.ax  OK
Using DirectShow codec: divx_c32.ax
DivX setting result = 0
VO: [x11] 356x240 => 356x240 BGR 32-bit 
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
Shared memory not supported
Reverting to normal Xlib
AO: [null] 44100Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: Null audio output
AO: Author: A'rpi
Initial frame delay  A: 1  V: 0
AVI Initial frame delay: 0.033
Start playing...
...


                   ________________________________________



I've placed an updated version of my wine/loader patch here:

  http://www.tools.de/solaris/mplayer/mplayer-wineopt-patch
  

Has anyone tested/played with the patch?  Did it break anything?
Any objections if I just check in this patch into the current CVS tree?

--
Jürgen Keil          		jk at tools.de
Tools GmbH			+49 (228) 9858011


_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng



More information about the MPlayer-dev-eng mailing list