[Mplayer-advusers] sig11 on -aid 1 with a ogg file

Attila Kinali kinali at gmx.net
Fri May 10 15:19:56 CEST 2002


Hi,

First of all, is -aid the correct option to choose another audio
stream in an ogg file ?

and second... here the bugreport:

---schnipp---
(gdb) run -v -aid 1 ~/anime/zx.tenchi-universe.01.divx5.ogm 

Starting program: /home/attila/src/mplayer/main/mplayer -v -aid 1 ~/anime/zx.tenchi-universe.01.divx5.ogm
[New Thread 1024 (LWP 16611)]


MPlayer CVS-020415-15:32-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Type: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with features: MMX
Reading /home/attila/.mplayer/codecs.conf: 30 audio & 81 video codecs
CommandLine: '-v' '-aid' '1' '/home/attila/anime/zx.tenchi-universe.01.divx5.ogm'
get_path('font/font.desc') -> '/home/attila/.mplayer/font/font.desc'
Font /home/attila/.mplayer/font/font.desc loaded successfully! (140 chars)
Using MMX Optimized OnScreenDisplay
Linux RTC init error: Permission denied
Using usleep() timing
get_path('input.conf') -> '/home/attila/.mplayer/input.conf'
Can't open input config file /home/attila/.mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) config
Playing /home/attila/anime/zx.tenchi-universe.01.divx5.ogm
Not an URL!
File size is 44981064 bytes
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x82ab958  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x82ab958  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x82ab958  
Checking for MOV
DEMUXER: freeing demuxer at 0x82ab958  
Checking for VIVO
header block 1 size: 103
DEMUXER: freeing demuxer at 0x82ab958  
Checking for REAL
DEMUXER: freeing demuxer at 0x82ab958  
DEMUXER: freeing demuxer at 0x82ab958  
DEMUXER: freeing demuxer at 0x82ab958  
DEMUXER: freeing demuxer at 0x82ab958  
DEMUXER: freeing demuxer at 0x82ab958  
==> Found video stream: 0
OGG stream 0 is video (new hdr)
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 480
  biPlanes 1
  biBitCount 24
  biCompression 808802372='DX50'
  biSizeImage 921600
===========================
==> Found audio stream: 1
OGG : stream 1 is vorbis

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 16611)]
0x08115be6 in demux_ogg_add_packet (ds=0x825c170, os=0x82b59d0, 
    pack=0xbfffe47c) at demux_ogg.c:213
213       if((*pack->packet & PACKET_TYPE_HEADER) && 
(gdb) bt
#0  0x08115be6 in demux_ogg_add_packet (ds=0x825c170, os=0x82b59d0, 
    pack=0xbfffe47c) at demux_ogg.c:213
#1  0x08116bfa in demux_ogg_open (demuxer=0x82ab958) at demux_ogg.c:557
#2  0x08103f1b in demux_open_stream (stream=0x82aa780, file_format=0, 
    audio_id=1, video_id=-1, dvdsub_id=-1) at demuxer.c:678
#3  0x08104952 in demux_open (vs=0x82aa780, file_format=0, audio_id=1, 
    video_id=-1, dvdsub_id=-1) at demuxer.c:959
#4  0x08050d2e in main (argc=5, argv=0xbffff804, envp=0xbffff81c)
    at mplayer.c:1055
(gdb) l
208       unsigned char* data;
209       float pts = 0;
210       int flags = 0;
211     
212       // If packet is an header we jump it except for vorbis
213       if((*pack->packet & PACKET_TYPE_HEADER) && 
214          (ds == d->video || (ds == d->audio && ( ((sh_audio_t*)ds->sh)->format != 0xFFFE || os->hdr_packets >= NUM_VORBIS_HDR_PACKETS ) ) ))
215         return 0;
216     
217       // For vorbis packet the packet is the data, for other codec we must jump the header
(gdb) p *pack->packet
$1 = 1 '\001'
(gdb) p ds
$2 = (demux_stream_t *) 0x825c170
(gdb) p d
$3 = (demuxer_t *) 0x82ab958
(gdb) p *ds
$4 = {buffer_pos = 0, buffer_size = 0, buffer = 0x0, pts = 0, pts_bytes = 0, 
  eof = 0, pos = 0, dpos = 0, pack_no = 0, flags = -1, packs = 0, bytes = 0, 
  first = 0x0, last = 0x0, id = 1, demuxer = 0x82ab958, asf_packet = 0x0, 
  asf_seq = -1, ss_mul = 1, ss_div = 1, sh = 0x0}
(gdb) p *d
$5 = {stream = 0x82aa780, synced = 0, filepos = 0, type = 18, file_format = 0, 
  movi_start = 0, movi_end = 44981064, seekable = 1, audio = 0x825c170, 
  video = 0x825c1d0, sub = 0x825c230, a_streams = {0x0, 0x82ae5f0, 
    0x0 <repeats 254 times>}, v_streams = {0x82b5790, 
    0x0 <repeats 255 times>}, s_streams = '\0' <repeats 31 times>, priv = 0x0, 
  info = 0x0}
(gdb) p (sh_audio_t*)ds
$6 = (sh_audio_t *) 0x825c170
(gdb) p (sh_audio_t*)ds-sh
No symbol "sh" in current context.
(gdb) p (sh_audio_t*)ds->sh
$7 = (sh_audio_t *) 0x0
---schnapp---

as you can see, ds->sh is not correctly set.

		Attila Kinali
-- 
Israel, where the first genocide of this century takes place.



More information about the MPlayer-advusers mailing list