[Mplayer-dev-eng] MPlayer SIG11 on seek with unknown codec
Felix Buenemann
atmosfear at users.sourceforge.net
Fri Aug 24 00:08:18 CEST 2001
Hi,
MPlayer crashes with sig11, when trying to seek in an avi with an unknown
audio codec (Ogg/Vorbis in this case). It tells to use nosound after audio
codec detection fails. If I playback with -nosound it works.
Possible places to look for are audio_id in mplayer.c (-2 with -nosound, -1
otherwise) which are passed to demux_open.
debug session:
Starting program: /home/atmosfear/develop/mplayer/main/./mplayer
/download/samples/Coyote.Ugly.Sample.Ogg.Vorvbis.avi
[New Thread 1024 (LWP 18170)]
MPlayer CVS-010823-22:57(C) 2000-2001 Arpad Gereoffy (see DOCS/AUTHORS)
Reading /home/atmosfear/.mplayer/codecs.conf: 15 audio & 37 video codecs
Font /home/atmosfear/.mplayer/font/font.desc loaded successfully! (138 chars)
Detected AVI file format!
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
VIDEO: [DIV3] 640x480 24bpp 25.00 fps 2027.2 kbps (247.5 kbyte/s)
[V] filefmt:3 fourcc:0x33564944 size:640x480 fps:25.00 ftime:=0.0400
Can't find codec for audio format 0xFFFE !
*** Try to upgrade /home/atmosfear/.mplayer/codecs.conf from etc/codecs.conf
*** If it's still not OK, then read DOCS/CODECS!
Detected video codec: [divxds] drv:4 (DivX ;-) (MS MPEG-4 v3))
Loading DLL: /usr/lib/win32/divx_c32.ax OK
Using DirectShow codec: divx_c32.ax
Decoder is capable of YUV output ( flags 0x1 )
m_bIsDivX=1
VO: [xv] 640x480 => 640x480 Packed YUY2
vo: X11 running at 1024x768 depth: 16 (":0" => local display)
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x36315652 (RV16) packed
Xvideo image format: 0x35315652 (RV15) packed
Xvideo image format: 0x31313259 (Y211) packed
Xvideo image format: 0x0 ( ) packed
using Xvideo port 41 for hw scaling
[xv] dcx: 0 dcy: 0 dx: 0 dy: 0 dw: 640 dh: 480
Audio: no sound
Start playing...
[xv] dcx: 4 dcy: 20 dx: 0 dy: 0 dw: 640 dh: 480
V: 4.0 102 27% 6% 0.0%
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 18170)]
0x0805391b in resync_audio_stream ()
(gdb) bt
#0 0x0805391b in resync_audio_stream ()
#1 0x00000254 in ?? ()
Cannot access memory at address 0x254
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x80538fb to 0x805393b:
0x80538fb <mplayer_audio_read+15>: mov 0x80ee348,%eax
0x8053900 <mplayer_audio_read+20>: push %edx
0x8053901 <mplayer_audio_read+21>: mov (%eax),%eax
0x8053903 <mplayer_audio_read+23>: push %eax
0x8053904 <mplayer_audio_read+24>: call 0x805d328 <demux_read_data>
0x8053909 <mplayer_audio_read+29>: add $0x10,%esp
0x805390c <mplayer_audio_read+32>: add $0xc,%esp
0x805390f <mplayer_audio_read+35>: ret
0x8053910 <resync_audio_stream>: sub $0x18,%esp
0x8053913 <resync_audio_stream+3>: push %ebx
0x8053914 <resync_audio_stream+4>: mov 0x20(%esp,1),%ebx
0x8053918 <resync_audio_stream+8>: mov 0x8(%ebx),%eax
0x805391b <resync_audio_stream+11>: movzwl 0xf0(%eax),%eax
0x8053922 <resync_audio_stream+18>: dec %eax
0x8053923 <resync_audio_stream+19>: cwtl
0x8053924 <resync_audio_stream+20>: cmp $0x8,%eax
0x8053927 <resync_audio_stream+23>: ja 0x8053979
<resync_audio_stream+105>
0x8053929 <resync_audio_stream+25>: jmp *0x80d2f38(,%eax,4)
0x8053930 <resync_audio_stream+32>: add $0xfffffff8,%esp
0x8053933 <resync_audio_stream+35>: push $0xfffffffe
0x8053935 <resync_audio_stream+37>: push $0x0
0x8053937 <resync_audio_stream+39>: call 0x806e904 <MP3_DecodeFrame>
End of assembler dump.
(gdb) printf "eax=%08lX\n",$eax
eax=00000000
(gdb) printf "ebx=%08lX\n",$ebx
ebx=0814B690
(gdb) printf "ecx=%08lX\n",$ecx
ecx=0814B690
(gdb) printf "edx=%08lX\n",$edx
edx=00000006
(gdb) printf "esp=%08lX\n",$esp
esp=BFFFF1E4
(gdb) printf "ebp=%08lX\n",$ebp
ebp=00000254
(gdb) printf "edi=%08lX\n",$edi
edi=08148478
(gdb) printf "esi=%08lX\n",$esi
esi=00000000
(gdb) quit
--
Best Regards,
Atmos
_____
640K are ought to be enough.
- Bill Gates
_______________________________________________
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