[MPlayer-users] [BUG] mplayer crashes in af_reinit

Balatoni Denes pnis at coder.hu
Fri Nov 29 20:06:02 CET 2002


Hi!

I am using -format 16 as an option (it's not in the man, though it used to be 
there), it is needed because the sound chip supports only 16 bit.
But if I try to play a 44100/2ch(1, but libmp3 decodes it to stereo)/16bit 
movie, mplayer crashes. It happens both with fbdev and xv  as vo.
It is current cvs, as of about an hour ago.

OS: debian unstable
Linux denes 2.4.19 #4 Tue Nov 26 10:41:18 CET 2002 i686 unknown unknown 
GNU/Linux
-rwxr-xr-x    1 root     root      1109068 Nov 19 19:13 /lib/libc-2.3.1.so
lrwxrwxrwx    1 root     root           13 Nov 25 21:08 /lib/libc.so.6 -> 
libc-2.3.1.so
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
GNU ld version 2.13.90.0.14 20021114 Debian GNU/Linux
GNU assembler 2.13.90.0.14 20021114 Debian GNU/Linux
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i386-linux'.

(gdb) run -v -af resample=44100 -srate 44100 -format 16 matrix2-teaser.avi
Starting program: /usr/local/bin/mplayer -v -af resample=44100 -srate 44100 
-format 16 matrix2-teaser.avi
[New Thread 16384 (LWP 23546)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer CVS-021129-18:23-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Intel Pentium 4 Willamette (Family: 8, Stepping: 7)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': 
No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 47 audio & 114 video codecs
CommandLine: '-v' '-af' 'resample=44100' '-srate' '44100' '-format' '16' 
'matrix2-teaser.avi'
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz)
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf : No such file or 
directory
Can't open input config file /usr/local/etc/mplayer/input.conf : No such file 
or directory
Falling back on default (hardcoded) input config

Playing matrix2-teaser.avi
Not an URL!
File size is 2711552 bytes
Detected AVI file format!
list_end=0x2292
======= AVI Header =======
us/frame: 41666  (fps=24.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 1887   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  320 x 144
list_end=0x10F4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: divx (78766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 1000000/41666 = 24.000
Start: 0   Len: 1887
Suggested BufferSize: 13379
Quality 10000
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 320
  biHeight 144
  biPlanes 1
  biBitCount 24
  biCompression 808802372='DX50'
  biSizeImage 138240
===========================
Regenerating keyframe table for DIVX 4 video
list_end=0x2186
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 5972/1 = 5972.000
Start: 0   Len: 469560
Suggested BufferSize: 2637
Quality 10000
Sample size: 1
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 1
Samplerate: 44100
avg byte/sec: 5972
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=156
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
list_end=0x2292
Broken chunk?  chunksize=1382  (id=JUNK)
list_end=0x287272
Found movie at 0x280C - 0x287272
Reading INDEX block, 3763 chunks for 1887 frames (fpos=0x28727a)
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0xA5A)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=2140830
VIDEO:  [DX50]  320x144  24bpp  24.00 fps  217.8 kbps (26.6 kbyte/s)
[V] filefmt:3  fourcc:0x30355844  size:320x144  fps:24.00  ftime:=0.0417
get_path('sub/') -> '/root/.mplayer/sub/'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
init layer2&3 finished, tables done
mp3lib: using MMX optimized decore!
MPEG 1.0, Layer III, 44100 Hz 48 kbit Single-Channel, BPF: 156
Channels: 1, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 6000->176400 (48.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0
vo: X11 color mask:  FFFF  (R:F800 G:7E0 B:1F)
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0" => local display)
[x11] Detected wm is of class NetWM.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
ao2: 44100 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 
16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Adding filter resample
[resample] Changing sample rate to 44100Hz

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 23546)]
0x080cbf75 in af_reinit (s=0x8333160, af=0x0) at af.c:270
270         af=af->next;
(gdb) bt
#0  0x080cbf75 in af_reinit (s=0x8333160, af=0x0) at af.c:270
#1  0x080cc087 in af_init (s=0x8333160) at af.c:320
#2  0x08080a62 in init_audio_filters (sh_audio=0x82aea18, in_samplerate=44100,
    in_channels=2, in_format=16, in_bps=2, out_samplerate=44100, 
out_channels=2,
    out_format=16, out_bps=2, out_minsize=16384, out_maxsize=65536) at 
dec_audio.c:307
#3  0x08050450 in main (argc=9, argv=0xbffffc34) at mplayer.c:1410
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x80cbf55 to 0x80cbf95:
0x80cbf55 <af_reinit+593>:      mov    0xc(%ebp),%edx
0x80cbf58 <af_reinit+596>:      mov    (%edx),%eax
0x80cbf5a <af_reinit+598>:      mov    0x4(%eax),%eax
0x80cbf5d <af_reinit+601>:      push   %eax
0x80cbf5e <af_reinit+602>:      push   $0x81d4640
0x80cbf63 <af_reinit+607>:      push   $0x2501
0x80cbf68 <af_reinit+612>:      call   0x80533a0 <mp_msg_c>
0x80cbf6d <af_reinit+617>:      jmp    0x80cbd13 <af_reinit+15>
0x80cbf72 <af_reinit+622>:      mov    0xc(%ebp),%ecx
0x80cbf75 <af_reinit+625>:      mov    0x18(%ecx),%ecx
0x80cbf78 <af_reinit+628>:      mov    %ecx,0xc(%ebp)
0x80cbf7b <af_reinit+631>:      test   %ecx,%ecx
0x80cbf7d <af_reinit+633>:      jne    0x80cbd36 <af_reinit+50>
0x80cbf83 <af_reinit+639>:      mov    $0x1,%eax
0x80cbf88 <af_reinit+644>:      lea    0xffffffc8(%ebp),%esp
0x80cbf8b <af_reinit+647>:      pop    %ebx
0x80cbf8c <af_reinit+648>:      pop    %esi
0x80cbf8d <af_reinit+649>:      pop    %edi
0x80cbf8e <af_reinit+650>:      mov    %ebp,%esp
0x80cbf90 <af_reinit+652>:      pop    %ebp
0x80cbf91 <af_reinit+653>:      ret
0x80cbf92 <af_reinit+654>:      mov    %esi,%esi
0x80cbf94 <af_uninit>:  push   %ebp
End of assembler dump.




More information about the MPlayer-users mailing list